Hi Hariprasath,

check whether you have expose the appropriate packages in <Export-Package>
tag.

try with org.wso2.carbon.student.mgt.data.xsd.*


<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
*<Export-Package>org.wso2.carbon.student.mgt.*</Export-Package>*
<Import-Package>
!javax.xml.namespace, javax.xml.namespace;version="0.0.0",
*;resolution:=optional,
</Import-Package>
<Carbon-Component>UIBundle</Carbon-Component>
</instructions>
</configuration>
</plugin>


Thanks and Regards.

On Fri, Jun 19, 2015 at 1:53 PM, Thusitha Thilina Dayaratne <
[email protected]> wrote:

> And also verify that your stub is getting pack inside your ui jar as well.
> Thanks
>
> On Fri, Jun 19, 2015 at 12:37 PM, Pubudu Gunatilaka <[email protected]>
> wrote:
>
>> Hi Hariprasath,
>>
>> Check whether you have imported all the required classes in the jsp file.
>> This could be a reason for this error message.
>>
>> Thank you!
>>
>>
>> On Fri, Jun 19, 2015 at 12:13 PM, Vinod Kavinda <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> PWC6199: Generated servlet error:
>>> Only a type can be imported. org.wso2.carbon.student.mgt.data.xsd.Student
>>> resolves to a package
>>>
>>> According to this it is a package.
>>>
>>> On Fri, Jun 19, 2015 at 12:08 PM, Hariprasath Thanarajah <
>>> [email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> It is a class. But in the .jsp file we need to import the class. Am I
>>>> correct ? Otherwise it shows some error.
>>>>
>>>> Thank you
>>>>
>>>> On Fri, Jun 19, 2015 at 12:03 PM, Vinod Kavinda <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>> Is Student is a class or a package?? you seem to be trying to import a
>>>>> package here.
>>>>>
>>>>> Regards,
>>>>> Vinod
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>>
>>>> *Thank you**Hariprasath Thanarajah*
>>>> Associate Software Engineer | WSO2
>>>> E: [email protected]
>>>> M: +94752806528
>>>>
>>>>
>>>
>>>
>>> --
>>> Vinod Kavinda
>>> Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Pubudu Gunatilaka*
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>> mobile:  +94 77 4078049
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog      alokayasoya.blogspot.com
> About    http://about.me/thusithathilina
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to