Hi Sajini,

I think this is the same issue recorded under the title "Class visibility
issue while building Carbon front end component".

Have you tried removing all the features installed previously. Please note
that removing the feature from carbon admin console,
will not completely remove the feature from the carbon server.

You have to manually go and remove the installed jars from
/carbon-home/repository/components/plugins folder as I remember.

Regards,


On Tue, May 6, 2014 at 2:16 PM, Sajini De Silva <[email protected]> wrote:

> Hi,
>
> I implemented a simple carbon component following [1] and when I try to
> access the service from the carbon console I get the following error.
>
> ERROR {org.apache.catalina.core.ApplicationDispatcher} -
> Servlet.service() for servlet bridgeservlet threw exception
> org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for
> JSP
>
> PWC6199: Generated servlet error:
> Only a type can be imported.
> org.wso2.carbon.order.mgt.order.ui.OrderManagerClient resolves to a package
>
> PWC6197: An error occurred at line: 10 in the jsp file:
> /order-mgt/index.jsp
> PWC6199: Generated servlet error:
> OrderManagerClient cannot be resolved to a type
>
> PWC6197: An error occurred at line: 10 in the jsp file:
> /order-mgt/index.jsp
> PWC6199: Generated servlet error:
> OrderManagerClient cannot be resolved to a type
> ------
>
> What I'm trying to import in index.jsp class is
>
> <%@ page import="org.wso2.carbon.order.mgt.order.ui.OrderManagerClient" %>
>
> Which is clearly a class, not a package.
>
> Can somebody please point out what I'm doing wrong here?
>
>
>
> [1]
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>
> Thank you
> --
> Sajini De SIlva
> Software Engineer; WSO2 Inc.; http://wso2.com ,
> Email: [email protected]
> Blog: http://sajinid.blogspot.com/
> Git hub profile: https://github.com/sajinidesilva
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: [email protected] | Web: www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to