You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Vivek (JIRA)" <je...@portals.apache.org> on 2007/04/26 19:47:15 UTC

[jira] Created: (JS2-688) Unable to user Jetspeed services

Unable to user Jetspeed services
--------------------------------

                 Key: JS2-688
                 URL: https://issues.apache.org/jira/browse/JS2-688
             Project: Jetspeed 2
          Issue Type: Bug
          Components: Assembly/Configuration
    Affects Versions: 2.2-dev
         Environment: WINXP
MYSQL
Jetspeed-2.2-dev
            Reporter: Vivek


Hi 

I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
When ever i try to use this service Class cast exception occurred.

I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Updated: (JS2-688) Unable to use Jetspeed services

Posted by "Vivek (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vivek updated JS2-688:
----------------------

    Summary: Unable to use Jetspeed services  (was: Unable to user Jetspeed services)

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2-dev
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Resolved: (JS2-688) Unable to use Jetspeed services

Posted by "David Sean Taylor (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Sean Taylor resolved JS2-688.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.1

I needed to add an API for the JetspeedPowerToolFactory, then you must use this interface in your portlet code, not the implementation from the jetspeed-portal jar.
In your portlet you can now safely request the JetspeedPowerToolFactory as:

import org.apache.jetspeed.layout.JetspeedPowerToolFactory;
...
JetspeedPowerToolFactory powerToolFactory = 
              (JetspeedPowerToolFactory;)getPortletContext().getAttribute(CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY);


> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>             Fix For: 2.1.1
>
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-688) Unable to use Jetspeed services

Posted by "Scott T Weaver (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492083 ] 

Scott T Weaver commented on JS2-688:
------------------------------------

A please verify that the jetspeed-portal-2.1.jar <strong>IS NOT</strong> present in any of your portlet applications.  Having it in both the jetspeed portal application and one more portlet applications may cause this issue.  Also verify that the jetspeed-portal-2.1.jar <strong>IS NOT</strong> is not part of a shared classloader (shared/lib or common/lib tomcat, APP-INF/lib in BEA) or the system classloader as this will also cause classcast exceptions.  So the simple of it is: make sure that jetspeed-portal-2.1.jar is<strong>ONLY</strong> present in your jetspeed/WEB-INF/lib directory.

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2-dev
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-688) Unable to use Jetspeed services

Posted by "Vivek (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492097 ] 

Vivek commented on JS2-688:
---------------------------

I thought you solved my problem , but i don't include jetspeed-portal-2-2-dev.jar

then i got this error 

Failed to load portlet ServicePortlet: java.lang.NoClassDefFoundError: org/apache/jetspeed/velocity/JetspeedPowerToolFactory

I think Class cast exception occurs in jetspeedpowertool service as it doesn't belong to shared modules.

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2-dev
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-688) Unable to use Jetspeed services

Posted by "David Sean Taylor (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494614 ] 

David Sean Taylor commented on JS2-688:
---------------------------------------

WDIT? remove the Configuration dependency in the API, going to try now....

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>             Fix For: 2.1.1
>
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-688) Unable to use Jetspeed services

Posted by "David Sean Taylor (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494630 ] 

David Sean Taylor commented on JS2-688:
---------------------------------------

moved the JetspeedPowerTool interface to the api
JetspeedVelocityPowerTool extends JetspeedPowerTool for Velocity specific operations
removed dependencies on Commons Configuration
please see if it works for you, if so, close the issue


> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>             Fix For: 2.1.1
>
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-688) Unable to use Jetspeed services

Posted by "Scott T Weaver (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492102 ] 

Scott T Weaver commented on JS2-688:
------------------------------------

So, is the NoClassDef happening in the portal (jetspeed) itself or one of your portlet applications?

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2-dev
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Reopened: (JS2-688) Unable to use Jetspeed services

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma reopened JS2-688:
---------------------------


David,

The build for the jetspeed-api is broken as result of adding the new o.a.j.layout.JetspeedPowerToolFactory interface.
It depends on the jetspeedPowerTool interface which still is defined in the jetspeed-portal component.
Although moving that interface to the jetspeed-api would seem easy enough the do, there is a caveat: it exposes the commons-configuration Configuration class.
And because the jetspeed-api needs to be deployed in the shared/lib context, it would pull in the commons-configuration there too, which we definitely don't want (not even can).

So, this solution more or less isn't going to work out and we need to think of some workaround for it.
Changing the JetspeedPowerTool interface to not expose commons-configuration might be a way to do it, but I'm not sure that's feasible.

I've scanned the (Java) code for usage of the specific method: Configuration getTypeConfiguration(String type, String name, String location), and have found none, but maybe there are extensions out there which might use it?
If not, we could opt for changing the interface and return a Properties object instead.

WDYT?

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>             Fix For: 2.1.1
>
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Closed: (JS2-688) Unable to use Jetspeed services

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma closed JS2-688.
-------------------------

    Resolution: Fixed

Yes, its working again, thanks David.

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>             Fix For: 2.1.1
>
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Assigned: (JS2-688) Unable to use Jetspeed services

Posted by "David Sean Taylor (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Sean Taylor reassigned JS2-688:
-------------------------------------

    Assignee: David Sean Taylor

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2-dev
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Updated: (JS2-688) Unable to use Jetspeed services

Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
     [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma updated JS2-688:
--------------------------

    Priority: Blocker  (was: Major)

Changed the Priority to Blocker as the current changes made for this issue result in a broken build

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>            Priority: Blocker
>             Fix For: 2.1.1
>
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


[jira] Commented: (JS2-688) Unable to use Jetspeed services

Posted by "David Sean Taylor (JIRA)" <je...@portals.apache.org>.
    [ https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492089 ] 

David Sean Taylor commented on JS2-688:
---------------------------------------

I thought I had a typo in the service name. I was about to fix it, but it appears that is not the case. Yes, I think Scott has a point. Please try out what Scott recommended above. 

> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2-dev
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org