OpenVMS / Axis2 / Java / Web Service

2009-05-29 Thread Shasta Willson
I'm trying to get a web service client running on OpenVMS, using the Axis2 port.

I'm trying to determine if the wsdl2java tool is supported -- I
presume it is but there's no .com equivalent to the .bat or .sh files.
 Can anyone give me a pointer to a tutorial, or even reassurance that
it's a supported feature?

If not, is it possible to take the .java files generated on, say, a
windows box, then manually modify the .build file and compile on VMS?
I can't think of a technical reason it wouldn't be -- but it's easy to
code so that locations don't translate well.  Again, if anyone's done
it, knowing it's possible would be reassuring.

Thank you,
Shasta


Re: wss4j with Axis 1( no Axis2) comunicating with WSE3 configured webservice

2009-05-29 Thread Wishing Carebear
Hi Jose:
Have couple of questions for you
1) I have shown the .config file from the WSE3 in my first email. Is it
possible to get the equivalent .wsdd file
2) What i have is a .NET service and axis client.
3) I have the certificate from  webservice. How should I use this in the
client.wsdd. In otherwords, not sure what information I need to provide for
the encryptionuser and crypto.properties. Any tutorial on how to use the
certificate from .NET with wss4j and Axis.

Thanks,
Ravi

2009/5/29 José Ferreiro 

> Hello!
>
> I successfully made a secure dotnet client using the dotnet. 2.0 and Web
> services enhancement 3.0 (WSE 3.0) talking to axis 1.4 and wss4j 1.5.3 [1]
> with *x509 v3 certificates*.
>
> See this page which helps me as a start [2]! There is the equivalent file
> of client.wsdd in the dotnet framework nammed as web.config. In my project I
> called it [3] wse3PolicyCache.config. The name does not matter...
>
> Happy Axis and Happy coding!
>
> José Ferreiro
>
>
>
> [1]-
> http://magnot.blogspot.com/2008/04/secure-web-services-interoperability.html
> [2]- http://erlend.oftedal.no/blog/?blogid=12
> [3]-
> http://bp1.blogger.com/_SFCs1WYrqtY/SBXPETktd3I/AXE/nNI7mNpQS6c/s1600-h/visualStudio.png
> [4]-
> http://bp0.blogger.com/_SFCs1WYrqtY/SBXILDktdzI/AWk/9wqequ_9vNk/s1600-h/pfx-pkcs12-1.PNG
>
>
> On Fri, May 29, 2009 at 6:39 PM, Wishing Carebear <
> wishing.careb...@gmail.com> wrote:
>
>> Hello:
>> I'm using wss4j with Apache Axis 1.4 (no Axis2). Wondering if someone
>> could provide what should be the equivalent client.wsdd file for the
>> following policy file. I have tried posting this in wss4j newsgroup but
>> could not get any response. Hoping some one could give me some pointers.
>> Thanks.
>>
>> http://schemas.microsoft.com/wse/2005/06/policy";>
>>   
>> > type="Microsoft.Web.Services3.Design.UsernameForCertificateAssertion,
>> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
>> PublicKeyToken=31bf3856ad364e35" />
>> > type="Microsoft.Web.Services3.Design.X509TokenProvider,
>> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
>> PublicKeyToken=31bf3856ad364e35" />
>> > type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
>> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
>> PublicKeyToken=31bf3856ad364e35" />
>>   
>>   
>> > renewExpiredSecurityContext="true" requireSignatureConfirmation="false"
>> messageProtectionOrder="SignBeforeEncrypt" requireDerivedKeys="true"
>> ttlInSeconds="300">
>>   
>> > findValue="CN=TMPDMDevelopment" findType="FindBySubjectDistinguishedName" />
>>   
>>   
>> 
>> 
>> 
>>   
>> 
>> 
>>   
>> 
>>
>
>
>
>


Re: wss4j with Axis 1( no Axis2) comunicating with WSE3 configured webservice

2009-05-29 Thread Wishing Carebear
Thanks Jose. Will look into it.

2009/5/29 José Ferreiro 

> Hello!
>
> I successfully made a secure dotnet client using the dotnet. 2.0 and Web
> services enhancement 3.0 (WSE 3.0) talking to axis 1.4 and wss4j 1.5.3 [1]
> with *x509 v3 certificates*.
>
> See this page which helps me as a start [2]! There is the equivalent file
> of client.wsdd in the dotnet framework nammed as web.config. In my project I
> called it [3] wse3PolicyCache.config. The name does not matter...
>
> Happy Axis and Happy coding!
>
> José Ferreiro
>
>
>
> [1]-
> http://magnot.blogspot.com/2008/04/secure-web-services-interoperability.html
> [2]- http://erlend.oftedal.no/blog/?blogid=12
> [3]-
> http://bp1.blogger.com/_SFCs1WYrqtY/SBXPETktd3I/AXE/nNI7mNpQS6c/s1600-h/visualStudio.png
> [4]-
> http://bp0.blogger.com/_SFCs1WYrqtY/SBXILDktdzI/AWk/9wqequ_9vNk/s1600-h/pfx-pkcs12-1.PNG
>
>
> On Fri, May 29, 2009 at 6:39 PM, Wishing Carebear <
> wishing.careb...@gmail.com> wrote:
>
>> Hello:
>> I'm using wss4j with Apache Axis 1.4 (no Axis2). Wondering if someone
>> could provide what should be the equivalent client.wsdd file for the
>> following policy file. I have tried posting this in wss4j newsgroup but
>> could not get any response. Hoping some one could give me some pointers.
>> Thanks.
>>
>> http://schemas.microsoft.com/wse/2005/06/policy";>
>>   
>> > type="Microsoft.Web.Services3.Design.UsernameForCertificateAssertion,
>> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
>> PublicKeyToken=31bf3856ad364e35" />
>> > type="Microsoft.Web.Services3.Design.X509TokenProvider,
>> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
>> PublicKeyToken=31bf3856ad364e35" />
>> > type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
>> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
>> PublicKeyToken=31bf3856ad364e35" />
>>   
>>   
>> > renewExpiredSecurityContext="true" requireSignatureConfirmation="false"
>> messageProtectionOrder="SignBeforeEncrypt" requireDerivedKeys="true"
>> ttlInSeconds="300">
>>   
>> > findValue="CN=TMPDMDevelopment" findType="FindBySubjectDistinguishedName" />
>>   
>>   
>> 
>> 
>> 
>>   
>> 
>> 
>>   
>> 
>>
>
>
>
>


RE: Axis2 Spring integration... Getting nulls in dependency injected values

2009-05-29 Thread sk_kale

It worked, thank you very much 


jcaristi wrote:
> 
> Try removing the ServiceClass parameter.
> 
> 
> From: sk_kale [mailto:sks_k...@yahoo.com]
> Sent: Friday, May 29, 2009 3:32 PM
> To: axis-user@ws.apache.org
> Subject: Axis2 Spring integration... Getting nulls in dependency injected
> values
> 
> [Summary of problem] I am trying to integrate Axis2 with Spring 2.5
> --->hibernate in tomcat. My problem is my webservice class has few
> dependencies (beans), which I expect to be injected by spring container.
> They are actually injected during tomcat startup, but when I call
> webservice, these dependecies ( beans ) are null. How to fix this. [/End
> Summary] [Details] My services.xml is simple spring example
> com.test.webservice.EmpWebService
> org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
> EmpWebService I have copied spring.jar and axis2-spring-1.4.1.jar in
> axis2/WEB-INF/lib directory. My classes in seperate jar file which is also
> copied in axis2/WEB-INF/lib directory. My aar contains,
> META-INF/services.xml and META-INF/MANIFEST.FM I have added following in
> web.xml contextConfigLocation beans.xml,hibernate.xml
> org.springframework.web.context.ContextLoaderListener In my beans.xml, I
> have declared ... So I do not find anything wrong in configuration. When I
> start tomcat, the spring injects dependency properly. I checked it by
> adding system.out.println in setXXX methods, so setXXX methods gets called
> during tomcat startup. I also check if values being set ( injected) by
> Spring container are not null. So no problem in server startup. Everything
> looks ok. But when I call this webservice thorough client, I found that
> property empService ( which is supposed to be injected by spring container
> ) is null. My understanding is this is happening because Web Service class
> which is com.test.webservice.EmpWebService is loaded by two class loaders,
> this is why the classloader which loads this class during tomcat startup
> injects the dependencies properly. But when I call webservice, these
> dependencies (empService property) is null, this because this might have
> been loaded by different class loader, I have no idea. But how can fix
> this, please help me.
> 
> View this message in context: Axis2 Spring integration... Getting nulls in
> dependency injected
> values
> Sent from the Axis - User mailing list
> archive at Nabble.com.
> 
> 
> STATEMENT OF CONFIDENTIALITY:
> 
> 
> 
> The information contained in this electronic message and any attachments
> to
> this message are intended for the exclusive use of the addressee(s) and
> may
> contain confidential or privileged information. If you are not the
> intended
> recipient, please notify WHI Solutions immediately at g...@whisolutions.com,
> and destroy all copies of this message and any attachments.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Axis2-Spring-integration...-Getting-nulls-in-dependency-injected-values-tp23785825p23786578.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Axis2 Spring integration... Getting nulls in dependency injected values

2009-05-29 Thread Sagara Gunathunga
If you still have the same issue, you might have a problem with
classloader , there is a  known issues running Spring inside the AAR
approach but adding  "ServiceTCCL" parameter to the service.xml will
eliminate this issue . This will help you [1]

[1] - http://wso2.org/blog/dims/1131

Thanks ,

On Sat, May 30, 2009 at 1:19 AM, Caristi, Joe  wrote:
> Try removing the ServiceClass parameter.
>
>
>
> 
>
> From: sk_kale [mailto:sks_k...@yahoo.com]
> Sent: Friday, May 29, 2009 3:32 PM
> To: axis-user@ws.apache.org
> Subject: Axis2 Spring integration... Getting nulls in dependency injected
> values
>
>
>
> [Summary of problem] I am trying to integrate Axis2 with Spring 2.5
> --->hibernate in tomcat. My problem is my webservice class has few
> dependencies (beans), which I expect to be injected by spring container.
> They are actually injected during tomcat startup, but when I call
> webservice, these dependecies ( beans ) are null. How to fix this. [/End
> Summary] [Details] My services.xml is simple spring example
> com.test.webservice.EmpWebService
> org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
> EmpWebService I have copied spring.jar and axis2-spring-1.4.1.jar in
> axis2/WEB-INF/lib directory. My classes in seperate jar file which is also
> copied in axis2/WEB-INF/lib directory. My aar contains,
> META-INF/services.xml and META-INF/MANIFEST.FM I have added following in
> web.xml contextConfigLocation beans.xml,hibernate.xml
> org.springframework.web.context.ContextLoaderListener In my beans.xml, I
> have declared ... So I do not find anything wrong in configuration. When I
> start tomcat, the spring injects dependency properly. I checked it by adding
> system.out.println in setXXX methods, so setXXX methods gets called during
> tomcat startup. I also check if values being set ( injected) by Spring
> container are not null. So no problem in server startup. Everything looks
> ok. But when I call this webservice thorough client, I found that property
> empService ( which is supposed to be injected by spring container ) is null.
> My understanding is this is happening because Web Service class which is
> com.test.webservice.EmpWebService is loaded by two class loaders, this is
> why the classloader which loads this class during tomcat startup injects the
> dependencies properly. But when I call webservice, these dependencies
> (empService property) is null, this because this might have been loaded by
> different class loader, I have no idea. But how can fix this, please help
> me.
>
> 
>
> View this message in context: Axis2 Spring integration... Getting nulls in
> dependency injected values
> Sent from the Axis - User mailing list archive at Nabble.com.
>
> 
> STATEMENT OF CONFIDENTIALITY:
>
>
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain confidential or privileged information. If you are not the intended
> recipient, please notify WHI Solutions immediately at g...@whisolutions.com,
> and destroy all copies of this message and any attachments.
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


RE: Axis2 Spring integration... Getting nulls in dependency injected values

2009-05-29 Thread Caristi, Joe
Try removing the ServiceClass parameter.


From: sk_kale [mailto:sks_k...@yahoo.com]
Sent: Friday, May 29, 2009 3:32 PM
To: axis-user@ws.apache.org
Subject: Axis2 Spring integration... Getting nulls in dependency injected values

[Summary of problem] I am trying to integrate Axis2 with Spring 2.5 
--->hibernate in tomcat. My problem is my webservice class has few dependencies 
(beans), which I expect to be injected by spring container. They are actually 
injected during tomcat startup, but when I call webservice, these dependecies ( 
beans ) are null. How to fix this. [/End Summary] [Details] My services.xml is 
simple spring example com.test.webservice.EmpWebService 
org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier 
EmpWebService I have copied spring.jar and axis2-spring-1.4.1.jar in 
axis2/WEB-INF/lib directory. My classes in seperate jar file which is also 
copied in axis2/WEB-INF/lib directory. My aar contains, META-INF/services.xml 
and META-INF/MANIFEST.FM I have added following in web.xml 
contextConfigLocation beans.xml,hibernate.xml 
org.springframework.web.context.ContextLoaderListener In my beans.xml, I have 
declared ... So I do not find anything wrong in configuration. When I start 
tomcat, the spring injects dependency properly. I checked it by adding 
system.out.println in setXXX methods, so setXXX methods gets called during 
tomcat startup. I also check if values being set ( injected) by Spring 
container are not null. So no problem in server startup. Everything looks ok. 
But when I call this webservice thorough client, I found that property 
empService ( which is supposed to be injected by spring container ) is null. My 
understanding is this is happening because Web Service class which is 
com.test.webservice.EmpWebService is loaded by two class loaders, this is why 
the classloader which loads this class during tomcat startup injects the 
dependencies properly. But when I call webservice, these dependencies 
(empService property) is null, this because this might have been loaded by 
different class loader, I have no idea. But how can fix this, please help me.

View this message in context: Axis2 Spring integration... Getting nulls in 
dependency injected 
values
Sent from the Axis - User mailing list 
archive at Nabble.com.


STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at g...@whisolutions.com,
and destroy all copies of this message and any attachments.


Axis2 Spring integration... Getting nulls in dependency injected values

2009-05-29 Thread sk_kale

[Summary of problem]
I am trying to integrate Axis2 with Spring 2.5 --->hibernate in tomcat. My
problem is my webservice class has few dependencies (beans), which I expect
to be injected by spring container. They are actually injected during tomcat
startup, but when I call webservice, these dependecies ( beans ) are null.
How to fix this.
[/End Summary]

[Details]
My services.xml is 



simple spring example

com.test.webservice.EmpWebService


org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier
EmpWebService






I have copied spring.jar and axis2-spring-1.4.1.jar in 
axis2/WEB-INF/lib directory.

My classes in seperate jar file which is also copied in  axis2/WEB-INF/lib
directory.

My aar contains, 
META-INF/services.xml and 
META-INF/MANIFEST.FM

I have added following in web.xml


contextConfigLocation
beans.xml,hibernate.xml


org.springframework.web.context.ContextLoaderListener



In my beans.xml, I have declared 


...

 











So I do not find anything wrong in configuration. When I start tomcat, the
spring injects dependency properly. I checked it by adding
system.out.println in setXXX methods, so setXXX methods gets called during
tomcat startup. I also check if values being set ( injected) by Spring
container are not null. So no problem in server startup. Everything looks
ok. But when I call this webservice thorough client, I found that property
empService ( which is supposed to be injected by spring container ) is null.
My understanding is this is happening because Web Service class which is
com.test.webservice.EmpWebService is loaded by two class loaders, this is
why the classloader which loads this class during tomcat startup injects the
dependencies properly. But when I call webservice, these dependencies
(empService property) is null, this because this might have been loaded by
different class loader, I have no idea. But how can fix this, please help
me.
-- 
View this message in context: 
http://www.nabble.com/Axis2-Spring-integration...-Getting-nulls-in-dependency-injected-values-tp23785825p23785825.html
Sent from the Axis - User mailing list archive at Nabble.com.


Re: wss4j with Axis 1( no Axis2) comunicating with WSE3 configured webservice

2009-05-29 Thread José Ferreiro
Hello!

I successfully made a secure dotnet client using the dotnet. 2.0 and Web
services enhancement 3.0 (WSE 3.0) talking to axis 1.4 and wss4j 1.5.3 [1]
with *x509 v3 certificates*.

See this page which helps me as a start [2]! There is the equivalent file of
client.wsdd in the dotnet framework nammed as web.config. In my project I
called it [3] wse3PolicyCache.config. The name does not matter...

Happy Axis and Happy coding!

José Ferreiro



[1]-
http://magnot.blogspot.com/2008/04/secure-web-services-interoperability.html
[2]- http://erlend.oftedal.no/blog/?blogid=12
[3]-
http://bp1.blogger.com/_SFCs1WYrqtY/SBXPETktd3I/AXE/nNI7mNpQS6c/s1600-h/visualStudio.png
[4]-
http://bp0.blogger.com/_SFCs1WYrqtY/SBXILDktdzI/AWk/9wqequ_9vNk/s1600-h/pfx-pkcs12-1.PNG

On Fri, May 29, 2009 at 6:39 PM, Wishing Carebear <
wishing.careb...@gmail.com> wrote:

> Hello:
> I'm using wss4j with Apache Axis 1.4 (no Axis2). Wondering if someone could
> provide what should be the equivalent client.wsdd file for the following
> policy file. I have tried posting this in wss4j newsgroup but could not get
> any response. Hoping some one could give me some pointers. Thanks.
>
> http://schemas.microsoft.com/wse/2005/06/policy";>
>   
>  type="Microsoft.Web.Services3.Design.UsernameForCertificateAssertion,
> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35" />
>  type="Microsoft.Web.Services3.Design.X509TokenProvider,
> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35" />
>  type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion,
> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
> PublicKeyToken=31bf3856ad364e35" />
>   
>   
>  renewExpiredSecurityContext="true" requireSignatureConfirmation="false"
> messageProtectionOrder="SignBeforeEncrypt" requireDerivedKeys="true"
> ttlInSeconds="300">
>   
>  findValue="CN=TMPDMDevelopment" findType="FindBySubjectDistinguishedName" />
>   
>   
> 
> 
> 
>   
> 
> 
>   
> 
>


Failure to deploy axis2 war on WebLogic 10

2009-05-29 Thread JCSchering
Hi, I've posted this question twice before but got no response. When I 
deploy axis2 to a WebLogic 10 server I get the following error. Does any 
one know what the nullpointer is telling me? I've been on the phone with 
Oracle tech support for weeks now and have had no success. They want to 
know what this nullpointer means, what information is missing that causes 
the nullpointer. I think it might have something to do with cache but I'm 
not sure. I would really appreciate some help.

thank,
Jody


(StubLifecycleHelper.java:48)
at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:507)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1853)
at 
weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1830)
at 
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1750)
at 
weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909)
at 
weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973)
at 
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
at 
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at 
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at 
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at 
weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at 
weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at 
weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at 
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at 
weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at 
weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
at 
weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at 
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at 
weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at 
weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
at 
weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at 
weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
at 
weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
at 
weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
at 
weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:139)
at 
weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
at 
weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:816)
at 
weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1223)
at 
weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:434)
at 
weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)
at 
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181)
at 
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12)
at 
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67)
at 
weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

-
Please consider the environment before printing this email and any
attachments.

This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender.  If you have received this transmission in error, please

wss4j with Axis 1( no Axis2) comunicating with WSE3 configured webservice

2009-05-29 Thread Wishing Carebear
Hello:
I'm using wss4j with Apache Axis 1.4 (no Axis2). Wondering if someone could
provide what should be the equivalent client.wsdd file for the following
policy file. I have tried posting this in wss4j newsgroup but could not get
any response. Hoping some one could give me some pointers. Thanks.

http://schemas.microsoft.com/wse/2005/06/policy";>
  



  
  

  

  
  



  


  



Re: jaxb issues with Axis2 - while using the wsdl2java tool

2009-05-29 Thread Axis PC
Sebastin
I thought so too...in the very beginning. But it is there in AXIS_HOME
directory (activation-1.1.jar). Also...if that was the case wouldnt it be
failing for all cases. Why is it specifically for the chain-import scenario
I described.

Thanks
Preetham

2009/5/29 Sebastian Just - RÖPERWEISE Systems 

> Hi!
> > Caused by: java.lang.NoClassDefFoundError: javax/activation/DataHandler
>
> I guess you're missing the activation framework in your classpath.
>
>
> Best regards,
> Sebastian
>


Re: jaxb issues with Axis2 - while using the wsdl2java tool

2009-05-29 Thread Sebastian Just - RÖPERWEISE Systems
Hi! 
> Caused by: java.lang.NoClassDefFoundError: javax/activation/DataHandler

I guess you're missing the activation framework in your classpath.


Best regards,
Sebastian


jaxb issues with Axis2 - while using the wsdl2java tool

2009-05-29 Thread Axis PC
All,

We were previously using adb with Axis2 and all was working fine. Recently
we have been prototyping jaxb with Axis2. We have a complex wsdl which
imports several schemas and in turn the schema has additional schema
imports. In this scenario...errors are thrown. When we researched into
it...we figured out the code generation tool of Axis (JAxB) is not able to
handle a chain of schema imports based on the scenario described above. I
get the following error:

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
at
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
... 2 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
... 3 more
Caused by: java.lang.NoClassDefFoundError: javax/activation/DataHandler
at
com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.(RuntimeBuiltinLeafInfoImpl.java:224)
at
com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.(RuntimeTypeInfoSetImpl.java:61)
at
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:127)
at
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:79)
at
com.sun.xml.bind.v2.model.impl.ModelBuilder.(ModelBuilder.java:152)
at
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.(RuntimeModelBuilder.java:87)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286)
at
com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:332)
at
com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1.(AnnotationParserFactoryImpl.java:80)
at
com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl.create(AnnotationParserFactoryImpl.java:79)
at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.createAnnotationParser(NGCCRuntimeEx.java:323)
at
com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:48)
at
com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:73)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:294)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromEnterElement(NGCCHandler.java:111)
at
com.sun.xml.xsom.impl.parser.state.foreignAttributes.enterElement(foreignAttributes.java:50)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:200)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:246)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:238)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:226)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:262)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:270)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:219)
 

Rampart with JAX-WS

2009-05-29 Thread Axis PC
All,

I have been working on JAX-WS for close to a year now and have started
working on Axis lately. Each of the stacks have their pros and cons. One
major roadblock I see in jax-ws is the lack of independent WSIT modules that
implement the various WS-* standards. However I was wondering if anyone had
any success in implementing Rampart with JAX-WS. If so...could you please
brief on it?

Thanks
Preetham


Re: generating skeleton interfaces alone

2009-05-29 Thread Axis PC
Sebastian,

When I try to generate the interfaces using the following command:
"%AXIS2_HOME%/bin/wsdl2java" -uri %WSDL% -d jaxbri -ssi , I get the same
result as I do: "%AXIS2_HOME%/bin/wsdl2java" -uri %WSDL% -d jaxbri -ss. I
dont want any of the stubs. I just need the interface. I dont get any error
messages as such.

Thanks
Preetham

2009/5/29 Sebastian Just - RÖPERWEISE Systems 

> Hi Chand,
>
> What is exactly your problem?
> Can you give some exceptions or error messages?
>
> Best regards,
> Sebastian
>
>
>


Re: generating skeleton interfaces alone

2009-05-29 Thread Sebastian Just - RÖPERWEISE Systems
Hi Chand,

What is exactly your problem?
Can you give some exceptions or error messages?

Best regards,
Sebastian




generating skeleton interfaces alone

2009-05-29 Thread Axis PC
All,

I am using axis2 with JAXB. I am trying to generate the skeleton interfaces
alone using the -ssi option in the wsdl2java tool. However I havent had any
luck. I know at times we have to use certain combination of options. Is that
the case with -ssi as well? Eagerly waiting for your reply.

Thanks
Chand


Re: More than 1 Spring .aar in Axis2

2009-05-29 Thread robert lazarski
On Fri, May 29, 2009 at 10:25 AM, sarcott  wrote:
>
> I tried this approach of making copies of the ApplicationContextHolder for
> every .AAR file and left the spring.jar and axis2-spring-1.4.1.jar in
> WEB-INF. I am still having the application context problem. The only way I
> was able to make the multiple aar files work was by moving the jar files in
> to the individual aar files.
>
> Has anyone had success with mutilple applicationContextHolder? The
> spring.jar is 2.81 mb and we will be duplicating it in all the .aar files .
> Is there any other way to avoid this and still have the applicationContext
> work.
>
> thanks,
> Sarcott
>

Please read the manual carefully - when you say "The only way I
was able to make the multiple aar files work was by moving the jar files in
to the individual aar files" , that's the only way it can work. It
doesn't make sense - and its not supported - to have a completely
separate spring instance in each aar by using the same jar copy of
spring in WEB-INF. So yes, you do need multiple copies of the spring
jar in each war - that's the price you need to pay for it to work.
BTW, you may not need the full 2.8 mb spring jar - they ship smaller
jars supporting each feature set - ymmv.

Best regards,
Robert


Re: More than 1 Spring .aar in Axis2

2009-05-29 Thread sarcott

I tried this approach of making copies of the ApplicationContextHolder for
every .AAR file and left the spring.jar and axis2-spring-1.4.1.jar in
WEB-INF. I am still having the application context problem. The only way I
was able to make the multiple aar files work was by moving the jar files in
to the individual aar files. 

Has anyone had success with mutilple applicationContextHolder? The
spring.jar is 2.81 mb and we will be duplicating it in all the .aar files .
Is there any other way to avoid this and still have the applicationContext
work.

thanks,
Sarcott



iksrazal wrote:
> 
> On Wed, Jan 21, 2009 at 8:52 AM, Paul French 
> wrote:
>> How about taking a copy of this one class and putting that in your
>> service
>> .aar file. I think that might work since each service will have its own
>> classloader and so own copy of the ApplicationContextHolder. You could
>> leave
>> the spring libraries in WEB-INF/lib then?
>>
> 
> FYI, you can't do spring in the aar and still have any spring related
> jars - springframework, axis2 or anything else - in WEB-INF. I tested
> this alot when I wrote the code and it doesn't work any other way.
> 
> - R
> 
> 

-- 
View this message in context: 
http://www.nabble.com/More-than-1-Spring-.aar-in-Axis2-tp15505385p23779990.html
Sent from the Axis - User mailing list archive at Nabble.com.