On Tue, Mar 13, 2012 at 8:27 PM, Leslier López Nicot <[email protected]> wrote:
> Hi all. > > I build the module sample-utils and replace it in the folder > $BPS-HOME/repository/components/plugins/sample-utils_2.1.2.jar. It works > fine. Is this the only way to do that? Because I try with another jar with > the same class implementation but it didn´t work. If I put the jar in the > folder $BPS-HOME/repository/components/extensions, it did´nt see the > library wss4j, and if I put in the folder > $BPS-HOME/repository/components/plugins/, it didn´t recognize the class. * > *** > > I think that maybe the problem is in the folder META-INF of my jar, > because I check the sample-utils folder META-INF and it have some > information about the libraries that it use. > Yp, You can put the jar in extensions dir as an "OSGi bundle" with <Import-Package> for org.apache.ws.security.*. This package is exported by wss4j bundle. See https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/dependencies/orbit/wss4j/pom.xml > **** > > > > El 24/02/2012 11:22:PM, Denis Weerasiri escribió: > > > > On Sat, Feb 25, 2012 at 3:26 AM, Leslier López Nicot <[email protected]>wrote: > >> Thanks a lot, Dennis. >> >> I have a question about this example. >> >> What user and name use the PWCBHandler that is in the BPS? In this >> example it uses alice. How can I add a new username and password? >> > Refer impl at > https://svn.wso2.org/repos/wso2/trunk/graphite/products/bps/modules/samples/product/sample-utils/src/main/java/org/wso2/bps/samples/util/PWCBHandler.java > . > So you can change it and build the module > https://svn.wso2.org/repos/wso2/trunk/graphite/products/bps/modules/samples/product/sample-utils/ > . > Then by replacing > $BPS-HOME/repository/components/plugins/sample-utils_2.1.0.SNAPSHOT.jar , > you can change the uname and password. > >> >> >> El 23/02/2012 11:20:PM, Denis Weerasiri escribió: >> >> Hi, >> WSS4J is a default shipped jar in WSO2 BPS run-time to handle security >> scenarios. So you don't need to do any modifications. >> Please refer this sample[1], which use PWCBHandler. This is a default >> shipped sample with WSO2 BPS, so you can try-out OTTB. >> >> Steps to try-out the sample >> >> - Start WSO2 BPS >> - Go to admin console -> Go to process page >> - Select "LoanProcess" >> - Use try-it to invoke the process >> >> [1] - >> https://svn.wso2.org/repos/wso2/trunk/graphite/products/bps/modules/samples/product/src/main/resources/bpel/2.0/LoanProcess/ >> [2] - >> https://svn.wso2.org/repos/wso2/trunk/graphite/products/bps/modules/samples/product/src/main/resources/bpel/2.0/LoanProcess/policy.xml >> >> On Fri, Feb 24, 2012 at 2:50 AM, Leslier López Nicot <[email protected]>wrote: >> >>> Hi all. >>> >>> I’m trying to invoke a secure web service from a bpel process. I have a >>> class PWCBHandler to check the user and password for the service. I deploy >>> this jar into bps, but the problem is that 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"/> >>> >>> I change the classpath 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) >>> >>> I’m trying adding that library to the JRE, but it shows the same error. >>> Also, in the classpath I put exactly the folder inside the bps where is >>> that library, but same error. >>> >>> Any idea about how a can access that library? >>> >>> <http://www.antiterroristas.cu/> >>> >>> >>> _______________________________________________ >>> Bps-user mailing list >>> [email protected] >>> https://wso2.org/cgi-bin/mailman/listinfo/bps-user >>> >>> >> >> >> -- >> Thanks, >> Denis >> ---------------------------------------------------------- >> *Denis Weerasiri* >> Software Engineer >> Integration Technologies Team, WSO2 Inc.; http://wso2.com, >> *email: denis <http://goog_277208233/>** [AT] wso2.com <http://wso2.com/> >> * >> *phone: +94117639629 >> * >> *site: >> **https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/> >> *blog: **http://ddweerasiri.blogspot.com*<http://ddweerasiri.blogspot.com/> >> * >> twitter: **http://twitter.com/ddweerasiri*<http://twitter.com/ddweerasiri> >> * >> linked-in: >> **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri> >> >> >> >> <http://www.antiterroristas.cu/> >> >> > > > -- > Thanks, > Denis > ---------------------------------------------------------- > *Denis Weerasiri* > Software Engineer > Integration Technologies Team, WSO2 Inc.; http://wso2.com, > *email: denis <http://goog_277208233/>** [AT] wso2.com <http://wso2.com/>* > *phone: +94117639629 > * > *site: > **https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/> > *blog: **http://ddweerasiri.blogspot.com*<http://ddweerasiri.blogspot.com/> > * > twitter: **http://twitter.com/ddweerasiri*<http://twitter.com/ddweerasiri> > * > linked-in: > **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri> > > > > <http://www.antiterroristas.cu/> > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Thanks, Denis ---------------------------------------------------------- *Denis Weerasiri* Software Engineer Integration Technologies Team, WSO2 Inc.; http://wso2.com, *email: denis <http://goog_277208233/>** [AT] wso2.com <http://wso2.com/>* *phone: +94117639629 * *site: **https://sites.google.com/site/ddweerasiri/*<https://sites.google.com/site/ddweerasiri/> *blog: **http://ddweerasiri.blogspot.com* <http://ddweerasiri.blogspot.com/> * twitter: **http://twitter.com/ddweerasiri* <http://twitter.com/ddweerasiri>* linked-in: **http://lk.linkedin.com/in/ddweerasiri*<http://lk.linkedin.com/in/ddweerasiri>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
