[Carbon-dev] Problem with classpath in Eclipse
Leslier López Nicot
lnicot at uci.cu
Wed Feb 22 09:41:46 EST 2012
I change the classpath from this
<classpathentry kind="var"
path="ECLIPSE_WORKSPACE/.metadata/.plugins/org.wso2.carbonstudio.eclipse.libraries/lib/wss4j-1.5.10.wso2v2.jar"/>
To this
<classpathentry kind="lib"
path="carbon.home.folder/repository/components/plugins/wss4j-1.5.11.wso2v2.jar"/>
But still it didn't work. The error is
java.lang.NoClassDefFoundError: org/apache/ws/security/WSPasswordCallback
at org.wso2.bps.samples.util.PWCBHandler.handle(PWCBHandler.java:17)
El 22/02/2012 12:50:AM, Harshana Martin escribió:
>
>
> On Tue, Feb 21, 2012 at 9:37 PM, Denis Weerasiri <denis at wso2.com
> <mailto:denis at wso2.com>> wrote:
>
>
>
> On Wed, Feb 22, 2012 at 11:02 AM, Harshana Martin
> <harshana at wso2.com <mailto:harshana at wso2.com>> wrote:
>
> Hi Leslier,
>
> Adding WSS4J jars in to Eclipse classpath does not make it
> available in the BPS since we do not ship those jars with Bpel
> files. You need to place the WSS4J jar in your BPS servers'
> repository/components/lib folder.
>
> @Harshana, WSS4J jar is already available
> at repository/components/plugins. So the problem is not properly
> setting the classpath from eclipse?
>
>
> @Denis,
>
> Setting classpaths in Eclipse is only for the availability of the
> class at the development time inside Eclipse. It has nothing to do
> with the runtime availability of the class since we don't ship any
> jars in deployable Bpel archives. So it cannot be the issue.
>
> For some reason, Bpel engine cannot locate the class in the classpath.
> May be doing an OSGi debug (packages command) would help?
>
> Thanks and Regards,
> Harshana
>
>
> Hope this helps!
>
> Thanks and Regards,
> Harshana
>
> On Tue, Feb 21, 2012 at 1:55 PM, Leslier López Nicot
> <lnicot at uci.cu <mailto:lnicot at uci.cu>> wrote:
>
> Hi all.
>
> I'm trying to deploy an external class into bps. This
> class uses the library wss4j that is in the bps, in
> eclipse I add the library from the "WSO2 Classpath
> Libraries" but when I deploy the jar into bps, it gives me
> the error Class Not Found and refers to the class that is
> in the library wss4j. I check the classpath from the jar
> and it look like this:
>
> <classpathentry kind="var"
> path="ECLIPSE_WORKSPACE/.metadata/.plugins/org.wso2.carbonstudio.eclipse.libraries/lib/wss4j-1.5.10.wso2v2.jar"/>
>
>
> <http://www.antiterroristas.cu/>
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org <mailto:Carbon-dev at wso2.org>
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
>
>
> --
> Harshana Martin
> Software Engineer
> WSO2 Inc.
> Web:http://wso2.com
> http://wso2.org
>
> Mobile: +94 716062650 <tel:%2B94%20716062650>
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
> Twitter: http://twitter.com/harshana05
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org <mailto:Carbon-dev at wso2.org>
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
>
>
> --
> Thanks,
> Denis
> ----------------------------------------------------------
> *Denis Weerasiri*
> Software Engineer
> Integration Technologies Team, WSO2 Inc.; http://wso2.com
> <http://wso2.com/>,
> /email: denis <http://goog_277208233/>//[AT] wso2.com
> <http://wso2.com/>/
> /phone: +94117639629 <tel:%2B94117639629>
> /
> /site: //https://sites.google.com/site/ddweerasiri//
> /blog: //http://ddweerasiri.blogspot.com/
> <http://ddweerasiri.blogspot.com/>/
> twitter: //http://twitter.com/ddweerasiri//
> linked-in: //http://lk.linkedin.com/in/ddweerasiri/
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org <mailto:Carbon-dev at wso2.org>
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
>
>
> --
> Harshana Martin
> Software Engineer
> WSO2 Inc.
> Web:http://wso2.com
> http://wso2.org
>
> Mobile: +94 716062650
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
> Twitter: http://twitter.com/harshana05
>
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!
http://www.antiterroristas.cu
http://justiciaparaloscinco.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.wso2.org/pipermail/carbon-dev/attachments/20120222/c8e5173a/attachment-0001.html>
More information about the Carbon-dev
mailing list