RE: *SPAM*: 07.30/6.0 - Re: ServiceUnavailableException: No service invoker is available for reference default

2007-10-16 Thread Ana Belén Antón Gironés
Dear Simon,

I found the mistake I have spent a lot of time, but finally I achieved
it!!! The only mistake was "a space" in 

in the Information.composite file.

Sorry for my mistake and thank you very much for your useful help!

Now, I am going to try it with my actual application.

Best regards,

Ana Belen. 

-Mensaje original-
De: Simon Laws [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 16 de octubre de 2007 18:18
Para: tuscany-user@ws.apache.org
Asunto: Re: *SPAM*: 07.30/6.0 - Re: ServiceUnavailableException: No service
invoker is available for reference default

On 10/16/07, Ana Belén Antón Gironés <[EMAIL PROTECTED]> wrote:
>
>
> Hi, again!
>
> I have checked that you recommended:
>
> 1/ check that you have a target/classes dir and that it has suitable 
> .class files in it. If not then you need to compile your source using 
> ant compile.
>
> That´s right. The directory exists and the .class files, too.
>
> 2/ check that the ant target you are using to run the sample 
> (run-classes) references the target/classes directory on the classpath.
>
> That's right, too. My build.xml is:
>
>
> ==
> ==
> =
> 
> 
> 
> 
>
> 
> 
> 
>
> 
> destdir="target/classes"
>debug="on"
>source="1.5"
>target="1.5">
> 
>  location="../../lib/tuscany-sca-manifest.jar
> "/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>fork="true">
> 
> 
>  location="../../lib/tuscany-sca-manifest.jar
> "/>
> 
> 
> 
>
> 
>fork="true">
> 
> 
>  location="../../lib/tuscany-sca-manifest.jar
> "/>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
>
>
> ==
> ==
> 
>
> And I get:
>
> Buildfile: build.xml
>
> run-classes:
>  [java] Starting ...
>  [java] Exception in thread "main"
> org.osoa.sca.ServiceRuntimeException:
> org.osoa.sca.ServiceRuntimeException:
> org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> java.lang.ClassNotFoundException:
> eu.services.information.rh.InformationServiceImpl
>  [java] at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(
> SCADomain.j
> ava:264)
>  [java] at
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.j
> ava
> :69
> )
>  [java] at Client.isClient.main(isClient.java:13)
>  [java] Caused by: org.osoa.sca.ServiceRuntimeException:
> org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> java.lang.ClassNotFoundException:
> eu.services.information.rh.InformationServiceImpl
>  [java] at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain
> .(DefaultSCA
> Domain.java:127)
>  [java] at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(
> SCADomain.j
> ava:230)
>  [java] ... 2 more
>  [java] Caused by:
> org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> java.lang.ClassNotFoundException:
> eu.services.information.rh.InformationServiceImpl
>  [java] at
>
> org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProce
> ssor.r
> esolve(JavaImplementationProcessor.java:114)
>  [java] at
>
> org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProce
> ssor.r
> esolve(JavaImplementationProcessor.java:58)
>  [java] at
>
> org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProce
> ssorEx
>
> tensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProc
> essorE
> xtensionPoint.java:211)
>  [java] at
>
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactPr
> ocesso
> r.resolve(ExtensibleStAXArtifactProcessor.java:97)
>  [java] at
>
> org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImple
> mentat
> ion(BaseAssemblyProcessor.java:236)
>  [java] at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve
> (CompositeProc
> essor.java:730)
>  [java] at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve
> (CompositeProc
> essor.java:71)
>  [java] at
>
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactPr
> ocesso
> r.resolve(ExtensibleStAXArtifactProcessor.java:97)
>  [java] at
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve
> (Compo
> siteDocumentProcessor.java:114)
>  [java] at
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve
> (Compo
> siteDocumentProcessor.java:45)
>  [java] at
>
> o

Re: Tuscany service with bea WebLogic

2007-10-16 Thread Jean-Sebastien Delfino

[snip]
Venkata Krishnan wrote:

..or how about just supporting introspection of one level of jars within
wars if jars are nested inside jars we don't look at them... will this
bring down the complexity a bit.. or would it actually not matter that much
...

  

I think that the combinations that make sense are:
- now, .jars in .war!WEB-INF/lib
- then later, .wars in .ears
+1 on not trying jars nested inside jars, I've never seen that pattern, 
and was even not thinking about it.



- Venkat

On 10/16/07, ant elder <[EMAIL PROTECTED]> wrote:
  

On 10/12/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:


I think this goes back to what I describing earlier in this thread, if


we want to support WARs as a first class SCA contribution type we have
to consider artifacts stored in JARs under WEB-INF/lib as integral part
of the Web Archive like other artifacts in the WAR. We'll need to open
these JARs and process them like the rest of the artifacts in the WAR.

Doing this will help Nishant and all others running Tuscany on WebLogic.
  

Ok but from what was said earlier ("we would have to consider this
carefully
as allowing for nested archives may cause all kinds of complications") it
doesn't sound like it will be a really quick thing to fix. It looks like
WebLogic always creates a jar from the classes folder with a fixed name -
_wl_cls_gen.jar - so how about just have some special case code to deal
with
that one specific jar for now just to get Tuscany running on WebLogic?

   ...ant

I'm not sure that one JAR "_wl_cls_gen.jar" or all JARs under 
WEB-INF/lib will make a difference in terms of complexity. Maybe we can 
fallback to the special case hack if a clean solution really does not 
work, but I'd try suggest to try the clean solution first.


--
Jean-Sebastien


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with Conversational and Webservices

2007-10-16 Thread Simon Laws
On 10/16/07, Dietrich, Björn <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a problem with coversational and webservice binding.
> I have a Service which is conversational and uses the @ConversationID to
> get a ConversationID. I have a function getSessionID to read this
> conversationID.
> I use this function to get the ID on client-side and print it out.
>
> With POJO-binding the ConversationID stays the same no mather how often I
> call the getSessionID.
>
> SOULSessionServiceClient.composite
>
> http://www.osoa.org/xmlns/sca/1.0 targetNamespace=
> http://SOULSessionServicexmlns:hw="http://SOULSessionService";
> name="SOULSessionServiceClient">
>
> 
>
> 
>
> 
>
> 
>
>
> OUTPUT:
> SOULSESSIONSERVICECALLED:fc7e8541-b164-4cb7-af41-11a69a082a07
>
> GETSTATE
>
> Called getSessionID
>
> SessionID:fc7e8541-b164-4cb7-af41-11a69a082a07
>
> SOULSESSIONSERVICECALLED:fc7e8541-b164-4cb7-af41-11a69a082a07
>
> Called getSessionID
>
> SessionID:fc7e8541-b164-4cb7-af41-11a69a082a07
>
>
>
> If I use the same client with WebService-binding I get a different
> ConversationID for each call.
>
>
>
> http://www.osoa.org/xmlns/sca/1.0 <
> http://www.osoa.org/xmlns/sca/1.0> targetNamespace=
> http://SOULSessionService  xmlns:hw="
> http://SOULSessionService"; name="SOULSessionServiceClient">
>
> 
>
> 
>
> 
>
>  promote="SOULSessionServiceClient/helloWorldService">
>
> 
>
> http://SOULSessionService#wsdl.port(HelloWorldService/HelloWorldSoapPort)"
> />
>
> 
>
> 
>
> OUTPUT:
>
> GETSTATE
>
> Called getSessionID
>
> SessionID:ff70883f-4441-447e-9b40-7d47052a69d9
>
> Called getSessionID
>
> SessionID:eacfebd2-6e27-4747-aefe-c2be119efa33
>
>
>
> Service Interface:
> @Remotable
>
> @Service
>
> @Conversational
>
> //@Scope("CONVERSATION")
>
> public interface ISOULSessionService extends ISOULService {
>
> //public String exec(String name);
>
> public String getName(String name);
>
> //public String exec(SOULParameters name);
>
> //public String exec(DataObject name);
>
>
>
> public String getSessionID(String name);
>
>
>
> public DataObject exec(DataObject name) throws SOULException;
>
>
>
> public DataObject storeState(DataObject pObject);
>
>
>
> public DataObject getState(DataObject pObject) ;
>
> }
>
>
>
>
>
> Service Implementation:
>
> @Scope("CONVERSATION")
> @Service(ISOULSessionService.class)
> public class SOULSessionService implements ISOULSessionService
> {
>
>
> @ConversationID
> public String lConversationID;
>
>
>
> public SOULSessionService()
> {
>
> }
> public String getName(String name)
> {
>   System.out.println("ConverstationID:"+lConversationID);
>   return "de.cenit.SOUL.ServiceRuntime.SOULSessionService
> ";//this.getClass().toString();
> }
>
> public DataObject exec(DataObject name) {
>  System.out.println("SOULSESSIONSERVICECALLED:"+lConversationID);
> return  name;
> }
>
>
> public String getSessionID(String name) {
> System.out.println("Called getSessionID");
> return lConversationID;
> }
>
>
>
> }
>
>
>
>
> WSDL-file:
>
>
>
> 
>
> 
>
> http://SOULSessionService"; xmlns:tns="
> http://SOULSessionService";
>
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="
> http://schemas.xmlsoap.org/wsdl/soap/";
>
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>
> xmlns:ns0="http://de_cenit_SOUL_ServiceRuntime";
>
> xmlns:ns1="http://de_cenit_SOUL_ServiceRuntime/xsd";
>
> xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
>
> name="SOULSessionService">
>
> 
>
> http://SOULSessionService";
>
> xmlns="http://www.w3.org/2001/XMLSchema";>
>
>
>
> 
>
> 
>
>  type="xsd:anyType"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
>  type="ns1:SOULException"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
> type="tns:LogonDataFieldType" maxOccurs="unbounded" />
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> http://de_cenit_SOUL_ServiceRuntime";
>
> xmlns="http://www.w3.org/2001/XMLSchema";>
>
>
>
> 
>
> 
>
>  type="xsd:anyType"/>
>
> 
>
> 
>
> 
>
> 
>
> 
>
>  type="ns1:SOULException"/>
>
> 
>
> 
>
> 
>
> 
>
> http://de_cenit_SOUL_ServiceRuntime/xsd";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://de_cenit_SOUL_ServiceRuntime/xsd"; xmlns="
> http://www.w3.org/2001/XMLSchema";>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 

Re: *SPAM*: 07.30/6.0 - Re: ServiceUnavailableException: No service invoker is available for reference default

2007-10-16 Thread Simon Laws
On 10/16/07, Ana Belén Antón Gironés <[EMAIL PROTECTED]> wrote:
>
>
> Hi, again!
>
> I have checked that you recommended:
>
> 1/ check that you have a target/classes dir and that it has suitable
> .class
> files in it. If not then you need to compile your source using ant
> compile.
>
> That´s right. The directory exists and the .class files, too.
>
> 2/ check that the ant target you are using to run the sample (run-classes)
> references the target/classes directory on the classpath.
>
> That's right, too. My build.xml is:
>
>
> 
> =
> 
> 
> 
> 
>
> 
> 
> 
>
> 
> destdir="target/classes"
>debug="on"
>source="1.5"
>target="1.5">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>fork="true">
> 
> 
> 
> 
> 
> 
>
> 
>fork="true">
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
>
>
> 
> 
>
> And I get:
>
> Buildfile: build.xml
>
> run-classes:
>  [java] Starting ...
>  [java] Exception in thread "main"
> org.osoa.sca.ServiceRuntimeException:
> org.osoa.sca.ServiceRuntimeException:
> org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> java.lang.ClassNotFoundException:
> eu.services.information.rh.InformationServiceImpl
>  [java] at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(
> SCADomain.j
> ava:264)
>  [java] at
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java
> :69
> )
>  [java] at Client.isClient.main(isClient.java:13)
>  [java] Caused by: org.osoa.sca.ServiceRuntimeException:
> org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> java.lang.ClassNotFoundException:
> eu.services.information.rh.InformationServiceImpl
>  [java] at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain
> .(DefaultSCA
> Domain.java:127)
>  [java] at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(
> SCADomain.j
> ava:230)
>  [java] ... 2 more
>  [java] Caused by:
> org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> java.lang.ClassNotFoundException:
> eu.services.information.rh.InformationServiceImpl
>  [java] at
>
> org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcessor.r
> esolve(JavaImplementationProcessor.java:114)
>  [java] at
>
> org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcessor.r
> esolve(JavaImplementationProcessor.java:58)
>  [java] at
>
> org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorEx
>
> tensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorE
> xtensionPoint.java:211)
>  [java] at
>
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcesso
> r.resolve(ExtensibleStAXArtifactProcessor.java:97)
>  [java] at
>
> org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImplementat
> ion(BaseAssemblyProcessor.java:236)
>  [java] at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve
> (CompositeProc
> essor.java:730)
>  [java] at
> org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve
> (CompositeProc
> essor.java:71)
>  [java] at
>
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcesso
> r.resolve(ExtensibleStAXArtifactProcessor.java:97)
>  [java] at
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve
> (Compo
> siteDocumentProcessor.java:114)
>  [java] at
> org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve
> (Compo
> siteDocumentProcessor.java:45)
>  [java] at
>
> org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor
> .resolve(ExtensibleURLArtifactProcessor.java:86)
>  [java] at
>
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.pro
> cessResolvePhase(ContributionServiceImpl.java:397)
>  [java] at
>
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.add
> Contribution(ContributionServiceImpl.java:327)
>  [java] at
>
> org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.con
> tribute(ContributionServiceImpl.java:152)
>  [java] at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain
> .(DefaultSCA
> Domain.java:125)
>  [java] ... 3 more
>  [java] Caused by: java.lang.ClassNotFoun

Re: [DISCUSS] Tuscany SCA Roadmap and next releases

2007-10-16 Thread Luciano Resende
>From what you mentioned, I'm very interested in the web 2.0
integration, and the ability to mashup SCA components/services using
simple SCA References concept on a web 2.0 client application.

I think that we should also add Data Integration to our Roadmap, as I
see SCA of great help to simplify exposing data as services to a
client application in a simple and flexible way.

As for Core capabilities, I think we should improve the error
reporting/handling for our data binding framework.

On 10/10/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> We've released v1.0 of Tuscany SCA 2 weeks ago... So it's probably the
> right time now to ask what people want to do next and try to build a
> roadmap for the next few releases.
>
> Here are a few random thoughts to initiate the discussion. I've just
> listed the things that came to my mind this morning, but I'm sure that
> there's much much more to add :)
>
> - Support for transaction and reliability policies
> Several users have asked for it, and there's now a public draft of the
> transaction policy spec
>
> - Webapp and EJB module integration
> I'd like to track the OASIS work on this and implement it in parallel in
> Tuscany. Many users have existing J2EE EJB and EAR modules that they'll
> need to integrate in bigger SCA compositions. Also Webapp developers
> will need a non-intrusive way to wire a Webapp with other SCA components
> in an SCA domain.
>
> - Conversational and non blocking + callback programming model over
> Web2.0 bindings
> Seems like a good fit with JSON for example... in particular Ajax
> interactions fit really well with the SCA non blocking + callback
> programming model.
>
> - Ability to model client side JavaScript components
> Looking at the Store sample for example, I'd like to be able to model
> the client Javascript as a component with SCA references to the
> ShoppingCart and Catalog services, instead of manually creating JSON and
> Atom client proxies in the client Javascript code.
>
> - Support for Atom using Apache Abdera
> Abdera just released their 0.3.0, I've started to look at it and it
> looks pretty good. I think we should try to port our Atom/RSS binding to
> it and see how it compares with the Rome library which we are currently
> using.
>
> - More modular distributions, in addition to our current all-in-one
> distribution, distribute smaller packages that people can choose to
> install or not?
>
> - Some clean up of the core runtime invocation and injection mechanism,
> we can probably simplify and actually remove code in a number of places :)
>
> Could people please jump in and say what they want to see in the next
> few releases? What they need for their Tuscany based projects? What is
> missing? What needs to be improved or fixed?
>
> --
> Jean-Sebastien
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Registration for India SCA/SDO briefings

2007-10-16 Thread Doug Tidwell
It's been pointed out that the registration page doesn't have the India 
events on it (thanks, Santosh!).  The problem should be fixed soon, I'll 
post an update when all the events are on the registration site.

Cheers, 
-Doug

senior software engineer 
emerging technology evangelism, swg strategy
http://www.ibm.com/developerWorks/

RE: *SPAM*: 07.30/6.0 - Re: ServiceUnavailableException: No service invoker is available for reference default

2007-10-16 Thread Ana Belén Antón Gironés
 
Hi, again!

I have checked that you recommended:

1/ check that you have a target/classes dir and that it has suitable .class
files in it. If not then you need to compile your source using ant compile.

That´s right. The directory exists and the .class files, too.

2/ check that the ant target you are using to run the sample (run-classes)
references the target/classes directory on the classpath.

That's right, too. My build.xml is:


=





















































And I get: 

Buildfile: build.xml

run-classes:
 [java] Starting ...
 [java] Exception in thread "main" org.osoa.sca.ServiceRuntimeException:
org.osoa.sca.ServiceRuntimeException:
org.apache.tuscany.sca.contribution.service.ContributionResolveException:
java.lang.ClassNotFoundException:
eu.services.information.rh.InformationServiceImpl
 [java] at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.j
ava:264)
 [java] at
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69
)
 [java] at Client.isClient.main(isClient.java:13)
 [java] Caused by: org.osoa.sca.ServiceRuntimeException:
org.apache.tuscany.sca.contribution.service.ContributionResolveException:
java.lang.ClassNotFoundException:
eu.services.information.rh.InformationServiceImpl
 [java] at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.(DefaultSCA
Domain.java:127)
 [java] at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.j
ava:230)
 [java] ... 2 more
 [java] Caused by:
org.apache.tuscany.sca.contribution.service.ContributionResolveException:
java.lang.ClassNotFoundException:
eu.services.information.rh.InformationServiceImpl
 [java] at
org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcessor.r
esolve(JavaImplementationProcessor.java:114)
 [java] at
org.apache.tuscany.sca.implementation.java.xml.JavaImplementationProcessor.r
esolve(JavaImplementationProcessor.java:58)
 [java] at
org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorEx
tensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcessorE
xtensionPoint.java:211)
 [java] at
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcesso
r.resolve(ExtensibleStAXArtifactProcessor.java:97)
 [java] at
org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveImplementat
ion(BaseAssemblyProcessor.java:236)
 [java] at
org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProc
essor.java:730)
 [java] at
org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolve(CompositeProc
essor.java:71)
 [java] at
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcesso
r.resolve(ExtensibleStAXArtifactProcessor.java:97)
 [java] at
org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(Compo
siteDocumentProcessor.java:114)
 [java] at
org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.resolve(Compo
siteDocumentProcessor.java:45)
 [java] at
org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor
.resolve(ExtensibleURLArtifactProcessor.java:86)
 [java] at
org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.pro
cessResolvePhase(ContributionServiceImpl.java:397)
 [java] at
org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.add
Contribution(ContributionServiceImpl.java:327)
 [java] at
org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.con
tribute(ContributionServiceImpl.java:152)
 [java] at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.(DefaultSCA
Domain.java:125)
 [java] ... 3 more
 [java] Caused by: java.lang.ClassNotFoundException:
eu.services.information.rh.InformationServiceImpl
 [java] ... 18 more


Thanks,

Ana Belen



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems with Conversational and Webservices

2007-10-16 Thread Dietrich , Björn
Hi,
 
I have a problem with coversational and webservice binding. 
I have a Service which is conversational and uses the @ConversationID to get a 
ConversationID. I have a function getSessionID to read this conversationID.
I use this function to get the ID on client-side and print it out.
 
With POJO-binding the ConversationID stays the same no mather how often I call 
the getSessionID.
 
SOULSessionServiceClient.composite

http://www.osoa.org/xmlns/sca/1.0 
targetNamespace=http://SOULSessionServicexmlns:hw="http://SOULSessionService"; 
name="SOULSessionServiceClient">









 
OUTPUT:
SOULSESSIONSERVICECALLED:fc7e8541-b164-4cb7-af41-11a69a082a07

GETSTATE

Called getSessionID

SessionID:fc7e8541-b164-4cb7-af41-11a69a082a07

SOULSESSIONSERVICECALLED:fc7e8541-b164-4cb7-af41-11a69a082a07

Called getSessionID

SessionID:fc7e8541-b164-4cb7-af41-11a69a082a07

 

If I use the same client with WebService-binding I get a different 
ConversationID for each call.

 

http://www.osoa.org/xmlns/sca/1.0 
 targetNamespace=http://SOULSessionService 
 xmlns:hw="http://SOULSessionService"; 
name="SOULSessionServiceClient">











http://SOULSessionService#wsdl.port(HelloWorldService/HelloWorldSoapPort)"
 />





OUTPUT:

GETSTATE

Called getSessionID

SessionID:ff70883f-4441-447e-9b40-7d47052a69d9

Called getSessionID

SessionID:eacfebd2-6e27-4747-aefe-c2be119efa33

 

Service Interface:
@Remotable

@Service

@Conversational

//@Scope("CONVERSATION")

public interface ISOULSessionService extends ISOULService {

//public String exec(String name);

public String getName(String name); 

//public String exec(SOULParameters name); 

//public String exec(DataObject name); 



public String getSessionID(String name); 



public DataObject exec(DataObject name) throws SOULException; 



public DataObject storeState(DataObject pObject);



public DataObject getState(DataObject pObject) ;

}

 

 

Service Implementation:

@Scope("CONVERSATION")
@Service(ISOULSessionService.class)
public class SOULSessionService implements ISOULSessionService
{
 
 
 @ConversationID
 public String lConversationID;
 

 
 public SOULSessionService()
 {
  
 }
 public String getName(String name)
 {
  System.out.println("ConverstationID:"+lConversationID);
  return 
"de.cenit.SOUL.ServiceRuntime.SOULSessionService";//this.getClass().toString();
 }
 
public DataObject exec(DataObject name) {
 System.out.println("SOULSESSIONSERVICECALLED:"+lConversationID);
return  name;
}
  

public String getSessionID(String name) {
System.out.println("Called getSessionID");
return lConversationID;
}


   
}


 

WSDL-file:

 





http://SOULSessionService"; 
xmlns:tns="http://SOULSessionService";

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";

xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 

xmlns:ns0="http://de_cenit_SOUL_ServiceRuntime";

xmlns:ns1="http://de_cenit_SOUL_ServiceRuntime/xsd";

xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";

name="SOULSessionService">



http://SOULSessionService";

xmlns="http://www.w3.org/2001/XMLSchema";>

 





















































 





















































































































































http://de_cenit_SOUL_ServiceRuntime";

xmlns="http://www.w3.org/2001/XMLSchema";>

 



























http://de_cenit_SOUL_ServiceRuntime/xsd"; 
attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://de_cenit_SOUL_ServiceRuntime/xsd"; 
xmlns="http://www.w3.org/2001/XMLSchema";>































 











































 





























































http://schemas.xmlsoap.org/soap/http"; />







































































































http://localhost:8080/SOULSessionService"; />







TestClient:

 

package de.cenit.tests;

import static org.junit.Assert.*;

import org.junit.Test;

 

import commonj.sdo.DataObject;
import commonj.sdo.helper.XMLHelper;

import de.cenit.SOUL.ServiceRuntime.ISOULService;
import de.cenit.SOUL.ServiceRuntime.SDOTools;
import de.cenit.SOUL.ServiceRuntime.SOULServiceProvider;
import de.cenit.SOUL.ServiceRuntime.ISOULSessionService;
import de_cenit_SOUL_ServiceRuntime.SOULException;

public class SOULSessionServiceTest {

 @Test
 public void testExec() {

  SOULServiceProvider lServiceProvider=new SOULServiceProvider();


 SOULServiceProvider lSOULServiceProvider=new SOULServiceProvider();
 
  ISOULSessionService SessionService 
=lSOULServiceProvider.getServic

Re: Helloworld Webservice and Security Policies

2007-10-16 Thread Dietrich , Björn
Hi Vankat,

First thank you very much. 

I will check the rampart documentation.

Thanks
Björn


-Ursprüngliche Nachricht-
Von: Venkata Krishnan [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 16. Oktober 2007 09:44
An: tuscany-user@ws.apache.org
Betreff: Re: Helloworld Webservice and Security Policies

Hi,

I am not a security specialist and I picked up this ws security handling from 
the rampart tutorials and samples I went through.  So from what I understand...

- In the client side handler you could set the passwords for various client 
identities.
- On the server side this is the handler that you use to retrieve the passwords 
from the handler on one side and then prob. from some user registry and do a 
comparison.  If the passwords match you return otherwise you throw an exception 
from the handler.

Here is a snippet that I picked up for this from the rampart samples for a 
typical server side handler.  Not that this method has to be precisely this 
way, it is more to give you an idea of what typcially goes on in the server 
side handler.

public class PWCBHandler implements CallbackHandler {

public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {

//When the server side need to authenticate the user
WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
if (pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN)
{
if(pwcb.getIdentifer().equals("alice") &&
pwcb.getPassword().equals("bobPW"))
{
return;
} else {
throw new UnsupportedCallbackException(callbacks[i],
"check failed");
}
}

//When the client requests for the password to be added in to the
//UT element
pwcb.setPassword("bobPW");
}
}
}

Hope this helps.  Let me know if you still have trouble getting things in place 
and I'd be happy to help you further.

Thanks

- Venkat









On 10/15/07, Dietrich, Björn <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
> I tried to understand the helloworld-ws-reference-secure and 
> helloworld-ws-service-secure example, provided with the SCA Version 1.0.
>
> In the defintions.xml there are Policies defined for security. I think 
> the Username is provided directly in this Policy-file.
> For both client and service a callback-classes to determe the password 
> are defined.
>
> helloworld.ClientPWCBHandler"
> +
>
> helloworld.ServerPWCBHandler
> 
>
> The implementations of server callback and client callback are 
> identical.So I suppose that the tuscany runtime calls this callbacks 
> to
>
> get the password form client and server-side and compares them.
>
> public void handle(Callback[] callbacks) throws IOException,
>
> UnsupportedCallbackException {
>
> for (int i = 0; i < callbacks.length; i++) {
>
> System.out.println("*** Calling Client UserId/Password Handler  
> ");
>
> WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
>
> //System.out.println( pwcb.getPassword());
>
> pwcb.setPassword("TuscanyWsUserPasswd");
>
> //System.out.println( pwcb.getPassword());
>
> }
>
> }
>
> Now I changed the password one client-side to
>
> pwcb.setPassword("123");
>
>
>
> I expected that the call of the WS would fail, but to my supprise I 
> could still  call the Service.
>
> I want to implement a gui on client side where the user has to enter 
> user and password. On server side I want to check these user/password 
> against some configuration-file.
>
> I suppose that one can implement the username also as callback, but I 
> did not find any documentation on that.
>
> I want to services in tunscany-java which use security and are 
> conversation-based.  Is there a documentation how to implement these 
> policies with tuscany.
>
> From my understanding  the  section is specific 
> to Tuscany. What subnotes are allowed inside this section ?
>
>
>
> thanks for your help
>
>
>
> Björn Dietrich
>
>
>
>
>
>
>
>
>
>
>
> CENIT AG Systemhaus, Industriestrasse 52-54, 70565 Stuttgart, Tel.: 
> +49
> 711 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.de
> Geschaeftsstellen: Berlin, Duesseldorf, Frankfurt, Hamburg, Hannover, 
> Muenchen, Saarbruecken
> Vorstandsmitglieder: Kurt Bengel, Christian Pusch
> Aufsichtsratsmitglieder: Falk Engelmann (Vorsitzender des 
> Aufsichtsrats), Hubert Leypoldt, Dr. Dirk Lippold
> Bankverbindungen: Deutsche Bank (BLZ 600 700 70) Kto. 1661 040, 
> Commerzbank (BLZ 600 400 71) Kto. 532 015 500, BW-Bank (BLZ 600 501 01) Kto.
> 2 403 313
> Registergericht: Amtsgericht Stuttgart
> Handelsregister: HRB Nr. 19117
> Umsatzsteuer: ID-Nr. DE 147 862 777
>


CENIT AG Systemhaus, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 
7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.de
Geschaeftsstellen: Berlin, Duesseldorf, Frankfurt, Hamburg, Hannover, Muenchen, 
Saarbruecken
Vorstandsmit

Re: ServiceUnavailableException: No service invoker is available for reference default

2007-10-16 Thread Simon Laws
On 10/16/07, Ana Belén Antón Gironés <[EMAIL PROTECTED]> wrote:
>
> Dear Simon,
>
> Sorry, but I haven't got success. I have tried to run the "mynewsample"
> but
> it doesn't work. I am very lost.
>
> Before, I was trying to run it from my IDE (Eclipse), but as I had too
> much
> troubles with this, now I am trying it from a command prompt because I got
> to run the calculator sample following this way.
>
> I have created a new sample directory with the same structure which you
> provided me. Regarding the pom.xml I have had a look at the pom.xml of the
> other sample and I copied it. My pom.xml is:
>
>
> ===
> 
> 
> 
> 4.0.0
> 
> org.apache.tuscany.sca
> tuscany-sca
> 1.0-incubating
> ../../pom.xml
> 
> sample-mynewsample
> Apache Tuscany SCA mynew Sample
>
> 
>
>   apache.incubator
>   http://people.apache.org/repo/m2-incubating-repository
> 
>
> 
>
> 
> 
> org.apache.tuscany.sca
> tuscany-host-embedded
> 1.0-incubating
> 
>
> 
> org.apache.tuscany.sca
> tuscany-implementation-java-runtime
> 1.0-incubating
> runtime
> 
>
> 
> junit
> junit
> 4.2
> test
> 
>
> 
>
> 
>${artifactId}
> 
> 
>
>
> ===
>
>
>
> I don´t know if it is right. What is the pom.xml?
>
> When I try to run the buil.xml I navigate to my sample directory
> (C:\TUSCANY\tuscany-sca-1.0-incubating\samples\mynewsample) and I do
>
> ant run-classes
>
> but I get this:
>
> run-classes:
>  [java] java.lang.NoClassDefFoundError: Client/isClient
>  [java] Exception in thread "main"
>  [java] Java Result: 1
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
>
>
> Do you know what I have missed?
>
> Best regards and thank you very much for your help,
>
> Ana Belen.
>
>
>
>
> -Mensaje original-
> De: Ana Belén Antón Gironés [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 15 de octubre de 2007 17:17
> Para: tuscany-user@ws.apache.org
> Asunto: RE: ServiceUnavailableException: No service invoker is available
> for
> reference default
>
>
> Dear Simon,
>
> I have checked if I am available to run the samples that come with Tuscany
> and it runs without any problem. I am going to review "mynewsample"
> directory again. I will let you know my progress! Thanks
>
> Best regards,
>
> Ana Belen
>
>
> -Mensaje original-
> De: Simon Laws [mailto:[EMAIL PROTECTED]
> Enviado el: lunes, 15 de octubre de 2007 15:17
> Para: tuscany-user@ws.apache.org
> Asunto: Re: ServiceUnavailableException: No service invoker is available
> for
> reference default
>
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > Hi Ana Belen
>
> 1) This looks like the same error as you were reporting before. Let's
> concentrate on the second one first as maybe that will highlight the
> underlying problem.
>
> 2). Tuscany is saying it can't find
> eu.services.information.rh.InformationServiceImpl. Can you check that the
> class is in that package and is available on the classpath that the
> Tuscany
> runtime (isClient) is being run with.
>
> Can you tell me if you are able to run the samples that come with Tuscany
> SCA V1.0. For example, the Calculator sample? It's good to run the sample
> and confirm that there is nothing fundamentally wrong with the
> installation.
> When I tried the example files from this thread I downloaded Tuscany SCA
> V1.0 and created a new sample directory for them.  So under
> sca1.0installdir/samples/mynewsample
> I have.
>
> 4./build.xml
> 4./pom.xml
> 4./src/main/java/Client/isClient.java
> 4./src/main/java/Client
> 1
>
> ./src/main/java/eu/services/information/exceptions/ISNotFoundException.java
> 1./src/main/java/eu/services/information/exceptions
> 1./src/main/java/eu/services/information/io/InformationObject.java
> 1./src/main/java/eu/services/information/io
> 1./src/main/java/eu/services/information/is/InformationService.java
> 1./src/main/java/eu/services/information/is
> 1./src/main/java/eu/services/information/rh/InformationObjectImpl.java
>
> 4./src/main/java/eu/services/information/rh/InformationServiceImpl.java
> 5./src/main/java/eu/services/information/rh
> 8./src/main/java/eu/services/information
> 8./src/main/java/eu/services
> 8./src/main/java/eu
> 76./src/main/java
> 1./src/main/resources/Information.composite
> 1./src/main/resources
> 77./src/main
> 81./src
>
> And I run it with the ant target I included in my previous mail that is in
> the build.xml file.
>
> Regards
>
> Simon
>
>
>
> -
> To u

Re: Tuscany service with bea WebLogic

2007-10-16 Thread Venkata Krishnan
..or how about just supporting introspection of one level of jars within
wars if jars are nested inside jars we don't look at them... will this
bring down the complexity a bit.. or would it actually not matter that much
...

- Venkat

On 10/16/07, ant elder <[EMAIL PROTECTED]> wrote:
>
> On 10/12/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
> 
>
> I think this goes back to what I describing earlier in this thread, if
> > we want to support WARs as a first class SCA contribution type we have
> > to consider artifacts stored in JARs under WEB-INF/lib as integral part
> > of the Web Archive like other artifacts in the WAR. We'll need to open
> > these JARs and process them like the rest of the artifacts in the WAR.
> >
> > Doing this will help Nishant and all others running Tuscany on WebLogic.
>
>
> Ok but from what was said earlier ("we would have to consider this
> carefully
> as allowing for nested archives may cause all kinds of complications") it
> doesn't sound like it will be a really quick thing to fix. It looks like
> WebLogic always creates a jar from the classes folder with a fixed name -
> _wl_cls_gen.jar - so how about just have some special case code to deal
> with
> that one specific jar for now just to get Tuscany running on WebLogic?
>
>...ant
>


RE: ServiceUnavailableException: No service invoker is available for reference default

2007-10-16 Thread Ana Belén Antón Gironés
Dear Simon, 

Sorry, but I haven't got success. I have tried to run the "mynewsample" but
it doesn't work. I am very lost. 

Before, I was trying to run it from my IDE (Eclipse), but as I had too much
troubles with this, now I am trying it from a command prompt because I got
to run the calculator sample following this way. 

I have created a new sample directory with the same structure which you
provided me. Regarding the pom.xml I have had a look at the pom.xml of the
other sample and I copied it. My pom.xml is:

===



4.0.0

org.apache.tuscany.sca
tuscany-sca
1.0-incubating
../../pom.xml

sample-mynewsample
Apache Tuscany SCA mynew Sample


   
  apache.incubator
  http://people.apache.org/repo/m2-incubating-repository
   




org.apache.tuscany.sca
tuscany-host-embedded
1.0-incubating



org.apache.tuscany.sca
tuscany-implementation-java-runtime
1.0-incubating
runtime



junit
junit
4.2
test





   ${artifactId}



===



I don´t know if it is right. What is the pom.xml? 

When I try to run the buil.xml I navigate to my sample directory
(C:\TUSCANY\tuscany-sca-1.0-incubating\samples\mynewsample) and I do 

ant run-classes

but I get this:

run-classes:
 [java] java.lang.NoClassDefFoundError: Client/isClient
 [java] Exception in thread "main" 
 [java] Java Result: 1  

BUILD SUCCESSFUL
Total time: 0 seconds


Do you know what I have missed?

Best regards and thank you very much for your help,

Ana Belen.




-Mensaje original-
De: Ana Belén Antón Gironés [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 15 de octubre de 2007 17:17
Para: tuscany-user@ws.apache.org
Asunto: RE: ServiceUnavailableException: No service invoker is available for
reference default

 
Dear Simon,

I have checked if I am available to run the samples that come with Tuscany
and it runs without any problem. I am going to review "mynewsample"
directory again. I will let you know my progress! Thanks
 
Best regards,

Ana Belen


-Mensaje original-
De: Simon Laws [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 15 de octubre de 2007 15:17
Para: tuscany-user@ws.apache.org
Asunto: Re: ServiceUnavailableException: No service invoker is available for
reference default

> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> Hi Ana Belen

1) This looks like the same error as you were reporting before. Let's
concentrate on the second one first as maybe that will highlight the
underlying problem.

2). Tuscany is saying it can't find
eu.services.information.rh.InformationServiceImpl. Can you check that the
class is in that package and is available on the classpath that the Tuscany
runtime (isClient) is being run with.

Can you tell me if you are able to run the samples that come with Tuscany
SCA V1.0. For example, the Calculator sample? It's good to run the sample
and confirm that there is nothing fundamentally wrong with the installation.
When I tried the example files from this thread I downloaded Tuscany SCA
V1.0 and created a new sample directory for them.  So under
sca1.0installdir/samples/mynewsample
I have.

4./build.xml
4./pom.xml
4./src/main/java/Client/isClient.java
4./src/main/java/Client
1
./src/main/java/eu/services/information/exceptions/ISNotFoundException.java
1./src/main/java/eu/services/information/exceptions
1./src/main/java/eu/services/information/io/InformationObject.java
1./src/main/java/eu/services/information/io
1./src/main/java/eu/services/information/is/InformationService.java
1./src/main/java/eu/services/information/is
1./src/main/java/eu/services/information/rh/InformationObjectImpl.java
4./src/main/java/eu/services/information/rh/InformationServiceImpl.java
5./src/main/java/eu/services/information/rh
8./src/main/java/eu/services/information
8./src/main/java/eu/services
8./src/main/java/eu
76./src/main/java
1./src/main/resources/Information.composite
1./src/main/resources
77./src/main
81./src

And I run it with the ant target I included in my previous mail that is in
the build.xml file.

Regards

Simon



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tuscany service with bea WebLogic

2007-10-16 Thread ant elder
On 10/12/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:


I think this goes back to what I describing earlier in this thread, if
> we want to support WARs as a first class SCA contribution type we have
> to consider artifacts stored in JARs under WEB-INF/lib as integral part
> of the Web Archive like other artifacts in the WAR. We'll need to open
> these JARs and process them like the rest of the artifacts in the WAR.
>
> Doing this will help Nishant and all others running Tuscany on WebLogic.


Ok but from what was said earlier ("we would have to consider this carefully
as allowing for nested archives may cause all kinds of complications") it
doesn't sound like it will be a really quick thing to fix. It looks like
WebLogic always creates a jar from the classes folder with a fixed name -
_wl_cls_gen.jar - so how about just have some special case code to deal with
that one specific jar for now just to get Tuscany running on WebLogic?

   ...ant


Re: strange dependency change

2007-10-16 Thread Radim Kolarik
Hi Sebastien,

thanks a lot for the detailed information.

We are happy with the workaround we have at the moment.

Thanks,
Radim

On 10/16/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
> Jean-Sebastien Delfino wrote:
> > Radim Kolarik wrote:
> >> Hi Sebastien,
> >>
> >> I don't understand your question. What do you mean by "level" of
> >> Tuscany? We used the same build and same version - 1.0-incubating, if
> >> that is the question...
> >>
> >
> > Yes that was the question :) I just wanted to know which Tuscany
> > version you were using and make sure that you were using the same
> > version in both cases.
> >
> > One more question, which Maven version are you using?
> >
> >> We used exactly the same build scripts, same version, but suddenly the
> >> jar started to appear in the built WAR. I would bet that the JAR is
> >> now appearing in calculator example as well, meaning it won't run.
> >> About two weeks ago, the JAR was not there...
> >>
> >
> > I'll try the Tuscany 1.0 release later today, but can already confirm
> > that I am able to reproduce the problem with the Tuscany trunk with
> > Maven 2.0.7.
> >
> > I'll investigate the Maven dependency analysis report to see where
> > this new dependency on servlet-api is coming from...
> >
>
> Here's what I found after digging into the Maven POM files and the SVN
> change history, an unfortunate sequence of events.
>
> The dependency on servlet-api-2.3 is coming from an Apache Rampart
> module. See rampart-project-1.3.pom [1].
>
> In Tuscany revision r576569 [2] (between Tuscany 1.0 RC1 and RC2) we
> made a change to remove the dependency on rampart-project-1.3 as it was
> a snapshot at the time (and we did not want any snapshots in the release).
>
> However we left a dependency on rampart-core-1.3.jar, which was
> published on ibiblio.org but did not have a Maven POM published with it
> (from what I see in an archive of my Maven repository from that time,
> only the JAR file and an MD5 signature seemed to have been published).
>
> On Oct 4th, a Maven POM for rampart-core.1.3.jar was published on
> ibiblio.org [3]. That POM declared a dependency on the
> rampart-project-1.3, bringing back rampart-project-1.3.pom and the
> dependency on servlet-api-2.3.jar.
>
> To summarize:
> - nothing changed in the published Tuscany 1.0 artifacts
> - nothing changed in the Rampart 1.3 artifacts published on ibiblio.org
> - the publication of rampart-core-1.3.pom at [3] on Oct 4th suddenly
> caused that new dependency on servlet-2.3.api.jar.
>
> So here's the trap we fell into: A dependency on a JAR published on the
> ibiblio.org Maven repository not accompanied by a Maven POM can break us
> later if somebody publishes a POM that adds transitive some dependencies
> for example... That's tricky.
>
> I'm going to fix the Tuscany trunk to exclude servlet-api-2.3.jar. Our
> next release should include that fix (BTW we've committed a number of
> fixes on top of 1.0 recently and I'm starting to think that we should
> have another release soon). Are you OK with the exclusion workaround you
> have found for now until the next release?
>
> [1]
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/rampart/rampart-project/1.3/rampart-project-1.3.pom
> [2]
> http://mail-archives.apache.org/mod_mbox/ws-tuscany-commits/200709.mbox/[EMAIL
>  PROTECTED]
> [3]
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/rampart/rampart-core/1.3/
>
> --
> Jean-Sebastien
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Helloworld Webservice and Security Policies

2007-10-16 Thread Venkata Krishnan
Hi,

I am not a security specialist and I picked up this ws security handling
from the rampart tutorials and samples I went through.  So from what I
understand...

- In the client side handler you could set the passwords for various client
identities.
- On the server side this is the handler that you use to retrieve the
passwords from the handler on one side and then prob. from some user
registry and do a comparison.  If the passwords match you return otherwise
you throw an exception from the handler.

Here is a snippet that I picked up for this from the rampart samples for a
typical server side handler.  Not that this method has to be precisely this
way, it is more to give you an idea of what typcially goes on in the server
side handler.

public class PWCBHandler implements CallbackHandler {

public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
for (int i = 0; i < callbacks.length; i++) {

//When the server side need to authenticate the user
WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
if (pwcb.getUsage() == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN)
{
if(pwcb.getIdentifer().equals("alice") &&
pwcb.getPassword().equals("bobPW"))
{
return;
} else {
throw new UnsupportedCallbackException(callbacks[i],
"check failed");
}
}

//When the client requests for the password to be added in to
the
//UT element
pwcb.setPassword("bobPW");
}
}
}

Hope this helps.  Let me know if you still have trouble getting things in
place and I'd be happy to help you further.

Thanks

- Venkat









On 10/15/07, Dietrich, Björn <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
> I tried to understand the helloworld-ws-reference-secure and
> helloworld-ws-service-secure example, provided with the SCA Version 1.0.
>
> In the defintions.xml there are Policies defined for security. I think the
> Username is provided directly in this Policy-file.
> For both client and service a callback-classes to determe the password are
> defined.
>
> helloworld.ClientPWCBHandler"
> +
>
> helloworld.ServerPWCBHandler
> 
>
> The implementations of server callback and client callback are
> identical.So I suppose that the tuscany runtime calls this callbacks to
>
> get the password form client and server-side and compares them.
>
> public void handle(Callback[] callbacks) throws IOException,
>
> UnsupportedCallbackException {
>
> for (int i = 0; i < callbacks.length; i++) {
>
> System.out.println("*** Calling Client UserId/Password Handler  ");
>
> WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
>
> //System.out.println( pwcb.getPassword());
>
> pwcb.setPassword("TuscanyWsUserPasswd");
>
> //System.out.println( pwcb.getPassword());
>
> }
>
> }
>
> Now I changed the password one client-side to
>
> pwcb.setPassword("123");
>
>
>
> I expected that the call of the WS would fail, but to my supprise I could
> still  call the Service.
>
> I want to implement a gui on client side where the user has to enter user
> and password. On server side I want to check these user/password against
> some configuration-file.
>
> I suppose that one can implement the username also as callback, but I did
> not find any documentation on that.
>
> I want to services in tunscany-java which use security and are
> conversation-based.  Is there a documentation how to implement these
> policies with tuscany.
>
> From my understanding  the  section is specific to
> Tuscany. What subnotes are allowed inside this section ?
>
>
>
> thanks for your help
>
>
>
> Björn Dietrich
>
>
>
>
>
>
>
>
>
>
>
> CENIT AG Systemhaus, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49
> 711 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.de
> Geschaeftsstellen: Berlin, Duesseldorf, Frankfurt, Hamburg, Hannover,
> Muenchen, Saarbruecken
> Vorstandsmitglieder: Kurt Bengel, Christian Pusch
> Aufsichtsratsmitglieder: Falk Engelmann (Vorsitzender des Aufsichtsrats),
> Hubert Leypoldt, Dr. Dirk Lippold
> Bankverbindungen: Deutsche Bank (BLZ 600 700 70) Kto. 1661 040,
> Commerzbank (BLZ 600 400 71) Kto. 532 015 500, BW-Bank (BLZ 600 501 01) Kto.
> 2 403 313
> Registergericht: Amtsgericht Stuttgart
> Handelsregister: HRB Nr. 19117
> Umsatzsteuer: ID-Nr. DE 147 862 777
>