dev@glassfish.java.net

Re: V3 build error

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 26 Aug 2008 17:12:14 -0700

Hi Anissa,

Anissa Lam wrote:
>
> Hi Marina,
>
> com.sun.woodstock.dependlibs.dataprovider-1.0.jar is the jar that
> Woodstock provides, however it is not an OSGi bundle. We have to wrap
> that and create org.glassfish.admingui.dataprovider-4.2 jar and thats
> what is included in GlassFish. We called that 4.2 to match the
> version of Woodstock we are using.
> If you expand
> .m2/repository/org/glassfish/admingui/dataprovider/4.2/dataprovider-4.2.jar
> , you should see the com.sun.data.provider.RowKey class. If you
> don't, that may explain why your build failed.

I don't:

  % jar -tf
~/.m2/repository/org/glassfish/admingui/dataprovider/4.2/dataprovider-4.2.jar |
grep Row
%
>
> The exclusion below is because we have our own OSGi bundle version.
>
> Oh, one more suggestion:
>
> rm -rf .m2/repository/org/glassfish/admingui/dataprovider
> revert your changes in core/pom.xml, ie use the version that is checked
> in, and then do 'mvn install' in v3/admingui/core. This will force it
> to just get the 4.2 jar from maven repo in case your build doesn't give
> you a good dataprovider-4.2.jar

How is it different from your first suggestion below (that didn't work for me)?

thanks,
-marina

>
> thanks
> Anissa
>
> Marina Vatkina wrote:
>
>> Anissa,
>>
>> No, this doesn't help either. But the com.sun.data.provider.RowKey
>> class is in the dataprovider-1.0.jar, not the dataprovider-4.2.jar and
>> I don't see its dependency being listed anywhere. More than that, the
>> v3/admingui/pom.xml has this in its dependency list:
>>
>> <exclusion>
>> <groupId>com.sun.woodstock.dependlibs</groupId>
>> <artifactId>dataprovider</artifactId>
>> </exclusion>
>>
>> How does it work?
>>
>> thanks,
>> -marina
>>
>> Anissa Lam wrote:
>>
>>>
>>> I have no idea why it stops working when we didn't change the code
>>> nor the dependency. This dependency is specified in the parent
>>> pom.xml.
>>> Another idea as a work around:
>>> Add this to end of the dependencies list of v3/admingui/core/pom.xml
>>>
>>> <dependency>
>>> <groupId>org.glassfish.admingui</groupId>
>>> <artifactId>dataprovider</artifactId>
>>> <version>4.2</version>
>>> <scope>provided</scope>
>>> </dependency>
>>>
>>> Just to see if it makes any difference. If this still doesn't solve
>>> it, i have no other suggestion :(
>>>
>>> Anissa.
>>>
>>>
>>> Marina Vatkina wrote:
>>>
>>>> Same problem.
>>>>
>>>> thanks,
>>>> -marina
>>>>
>>>> Anissa Lam wrote:
>>>>
>>>>>
>>>>> Ahh, this re-surface again. Last month or so, I remember there
>>>>> are couple people seeing this issue when I can't reproduce it and
>>>>> Hudson is building fine.
>>>>>
>>>>> Can you try
>>>>> rm -rf ~/.m2/repository/org/glassfish/admingui/dataprovider
>>>>> and
>>>>> rm -rf ~/.m2/repository/com/sun/woodstock/dependlibs/dataprovider
>>>>>
>>>>> do 'mvn clean install' at v3/admingui again to see if that help ?
>>>>>
>>>>> thanks
>>>>> Anissa.
>>>>>
>>>>> Marina Vatkina wrote:
>>>>>
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [INFO] Building Admin Console Core Jar
>>>>>> [INFO] task-segment: [install]
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> <...>
>>>>>>
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:73:
>>>>>> package com.sun.data.provider does not exist
>>>>>> import com.sun.data.provider.RowKey;
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:125:
>>>>>> cannot find symbol
>>>>>> symbol : class RowKey
>>>>>> location: class org.glassfish.admingui.handlers.TableHandlers
>>>>>> @HandlerOutput(name="rowKeys", type=RowKey[].class)})
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:140:
>>>>>> cannot find symbol
>>>>>> symbol : class RowKey
>>>>>> location: class org.glassfish.admingui.handlers.TableHandlers
>>>>>> @HandlerInput(name="rowKeys", type=RowKey[].class,
>>>>>> required=true)})
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:73:
>>>>>> package com.sun.data.provider does not exist
>>>>>> import com.sun.data.provider.RowKey;
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:125:
>>>>>> cannot find symbol
>>>>>> symbol : class RowKey
>>>>>> location: class org.glassfish.admingui.handlers.TableHandlers
>>>>>> @HandlerOutput(name="rowKeys", type=RowKey[].class)})
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:140:
>>>>>> cannot find symbol
>>>>>> symbol : class RowKey
>>>>>> location: class org.glassfish.admingui.handlers.TableHandlers
>>>>>> @HandlerInput(name="rowKeys", type=RowKey[].class,
>>>>>> required=true)})
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:99:
>>>>>> cannot access com.sun.data.provider.impl.ObjectListDataProvider
>>>>>> file com/sun/data/provider/impl/ObjectListDataProvider.class not
>>>>>> found
>>>>>> MultipleListDataProvider dp =
>>>>>> (MultipleListDataProvider)trg.getSourceData();
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:102:
>>>>>> cannot find symbol
>>>>>> symbol : class RowKey
>>>>>> location: class org.glassfish.admingui.handlers.TableHandlers
>>>>>> RowKey[] rowKeys = trg.getSelectedRowKeys();
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:144:
>>>>>> cannot find symbol
>>>>>> symbol : class RowKey
>>>>>> location: class org.glassfish.admingui.handlers.TableHandlers
>>>>>> RowKey[] keys = (RowKey [])
>>>>>> handlerCtx.getInputValue("rowKeys");
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:144:
>>>>>> cannot find symbol
>>>>>> symbol : class RowKey
>>>>>> location: class org.glassfish.admingui.handlers.TableHandlers
>>>>>> RowKey[] keys = (RowKey [])
>>>>>> handlerCtx.getInputValue("rowKeys");
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:146:
>>>>>> inconvertible types
>>>>>> found : java.lang.Object
>>>>>> required:
>>>>>> com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider
>>>>>> (MultipleListDataProvider) trg.getSourceData();
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:147:
>>>>>> cannot find symbol
>>>>>> symbol : class RowKey
>>>>>> location: class org.glassfish.admingui.handlers.TableHandlers
>>>>>> for (RowKey key : keys) {
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:165:
>>>>>> inconvertible types
>>>>>> found : java.lang.Object
>>>>>> required:
>>>>>> com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider
>>>>>> (MultipleListDataProvider) trg.getSourceData();
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:254:
>>>>>> inconvertible types
>>>>>> found : java.lang.Object
>>>>>> required:
>>>>>> com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider
>>>>>> MultipleListDataProvider dp =
>>>>>> (MultipleListDataProvider)trg.getSourceData();
>>>>>>
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/TableHandlers.java:287:
>>>>>> inconvertible types
>>>>>> found : java.lang.Object
>>>>>> required:
>>>>>> com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider
>>>>>> MultipleListDataProvider dp =
>>>>>> (MultipleListDataProvider)trg.getSourceData();
>>>>>>
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/StandAloneInstanceHandlers.java:388:
>>>>>> inconvertible types
>>>>>> found : java.lang.Object
>>>>>> required:
>>>>>> com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider
>>>>>> MultipleListDataProvider dp =
>>>>>> (MultipleListDataProvider)trg.getSourceData();
>>>>>>
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/StandAloneInstanceHandlers.java:579:
>>>>>> inconvertible types
>>>>>> found : java.lang.Object
>>>>>> required:
>>>>>> com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider
>>>>>> MultipleListDataProvider dp =
>>>>>> (MultipleListDataProvider)trg.getSourceData();
>>>>>>
>>>>>> ^
>>>>>> /export/v3/v3/admingui/core/src/main/java/org/glassfish/admingui/handlers/ApplicationHandlers.java:1294:
>>>>>> inconvertible types
>>>>>> found : java.lang.Object
>>>>>> required:
>>>>>> com.sun.jsftemplating.component.dataprovider.MultipleListDataProvider
>>>>>> MultipleListDataProvider dp =
>>>>>> (MultipleListDataProvider)trg.getSourceData();
>>>>>>
>>>>>> ^
>>>>>> Note: Some input files use or override a deprecated API.
>>>>>> Note: Recompile with -Xlint:deprecation for details.
>>>>>> Note: Some input files use unchecked or unsafe operations.
>>>>>> Note: Recompile with -Xlint:unchecked for details.
>>>>>> 15 errors
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [ERROR] BUILD ERROR
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [INFO] Fatal error compiling
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>