[Building Sakai] how to inject Sakai service into two java classes

View: New views
5 Messages — Rating Filter:   Alert me  

[Building Sakai] how to inject Sakai service into two java classes

by Small Cat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I want to use two ( or more ) java class that can be injected some Sakai Service.
In components.xml 's beans, I add a bean for second class :

<!--  SakaiProxy2 -->
    <bean id = "org.sakaiproject.profile2.logic.SakaiProxy2"
        class="org.sakaiproject.profile2.logic.SakaiProxy2Impl">
        <property name="authzGroupService" ref="org.sakaiproject.authz.api.AuthzGroupService"></property>
        <property name="siteService" ref="org.sakaiproject.site.api.SiteService"></property>
        <property name="sqlService" ref="org.sakaiproject.db.api.SqlService"></property>
    </bean>


But when I start up tomcat, it have some error & tomcat is stopped.
Please help me fix it !
Thanks,

--
Regards,
Tran Trung Kien

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] how to inject Sakai service into two java classes

by David Horwitz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tran,

What are the errors your getting?

Regards

David

Small Cat wrote:
I want to use two ( or more ) java class that can be injected some Sakai
Service.
In components.xml 's beans, I add a bean for second class :

*<!--  SakaiProxy2 -->
    <bean id = "org.sakaiproject.profile2.logic.SakaiProxy2"
        class="org.sakaiproject.profile2.logic.SakaiProxy2Impl">
        <property name="authzGroupService"
ref="org.sakaiproject.authz.api.AuthzGroupService"></property>
        <property name="siteService"
ref="org.sakaiproject.site.api.SiteService"></property>
        <property name="sqlService"
ref="org.sakaiproject.db.api.SqlService"></property>
    </bean>*

But when I start up tomcat, it have some error & tomcat is stopped.
Please help me fix it !
Thanks,

  

_______________________________________________ sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] how to inject Sakai service into two java classes

by Small Cat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi David,
I deploy successful, but when i start up tomcat , it is stopped at lines
Please view tomcat_error picture for more info about this.
Thanks,


2009/11/4 David Horwitz <david.horwitz@...>
Hi Tran,

What are the errors your getting?

Regards

David

Small Cat wrote:
I want to use two ( or more ) java class that can be injected some Sakai
Service.
In components.xml 's beans, I add a bean for second class :

*<!--  SakaiProxy2 -->
    <bean id = "org.sakaiproject.profile2.logic.SakaiProxy2"
        class="org.sakaiproject.profile2.logic.SakaiProxy2Impl">
        <property name="authzGroupService"
ref="org.sakaiproject.authz.api.AuthzGroupService"></property>
        <property name="siteService"
ref="org.sakaiproject.site.api.SiteService"></property>
        <property name="sqlService"
ref="org.sakaiproject.db.api.SqlService"></property>
    </bean>*

But when I start up tomcat, it have some error & tomcat is stopped.
Please help me fix it !
Thanks,

  

_______________________________________________ sakai-dev mailing list sakai-dev@... http://collab.sakaiproject.org/mailman/listinfo/sakai-dev TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"



--
Regards,
Tran Trung Kien


_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

tomcat_error.JPG (276K) Download Attachment

Re: [Building Sakai] how to inject Sakai service into two java classes

by David Horwitz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

We will need to see the start of the error that will be well before that. The best would be to attach your catalina.out log to the message.

D

Small Cat wrote:
Hi David,
I deploy successful, but when i start up tomcat , it is stopped at lines
Please view tomcat_error picture for more info about this.
Thanks,


2009/11/4 David Horwitz david.horwitz@...

  
 Hi Tran,

What are the errors your getting?

Regards

David

Small Cat wrote:

I want to use two ( or more ) java class that can be injected some Sakai
Service.
In components.xml 's beans, I add a bean for second class :

*<!--  SakaiProxy2 -->
    <bean id = "org.sakaiproject.profile2.logic.SakaiProxy2"
        class="org.sakaiproject.profile2.logic.SakaiProxy2Impl">
        <property name="authzGroupService"
ref="org.sakaiproject.authz.api.AuthzGroupService"></property>
        <property name="siteService"
ref="org.sakaiproject.site.api.SiteService"></property>
        <property name="sqlService"
ref="org.sakaiproject.db.api.SqlService"></property>
    </bean>*

But when I start up tomcat, it have some error & tomcat is stopped.
Please help me fix it !
Thanks,



------------------------------

_______________________________________________
sakai-dev mailing listsakai-dev@...

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"


    


  





_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] how to inject Sakai service into two java classes

by Mark Norton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you include the additional dependencies in your Maven file?

Small Cat wrote:

> I want to use two ( or more ) java class that can be injected some
> Sakai Service.
> In components.xml 's beans, I add a bean for second class :
>
> /*<!--  SakaiProxy2 -->
>     <bean id = "org.sakaiproject.profile2.logic.SakaiProxy2"
>         class="org.sakaiproject.profile2.logic.SakaiProxy2Impl">
>         <property name="authzGroupService"
> ref="org.sakaiproject.authz.api.AuthzGroupService"></property>
>         <property name="siteService"
> ref="org.sakaiproject.site.api.SiteService"></property>
>         <property name="sqlService"
> ref="org.sakaiproject.db.api.SqlService"></property>
>     </bean>*/
>
> But when I start up tomcat, it have some error & tomcat is stopped.
> Please help me fix it !
> Thanks,
>
> --
> Regards,
> Tran Trung Kien
> ------------------------------------------------------------------------
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev@...
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"