[jira] [Assigned] (CXF-3412) ManagedEndpoint.getTransportId return endpoint address

2011-03-24 Thread Freeman Fang (JIRA)

 [ 
https://issues.apache.org/jira/browse/CXF-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Freeman Fang reassigned CXF-3412:
-

Assignee: Freeman Fang

> ManagedEndpoint.getTransportId return endpoint address
> --
>
> Key: CXF-3412
> URL: https://issues.apache.org/jira/browse/CXF-3412
> Project: CXF
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 2.2
>Reporter: David Liu
>Assignee: Freeman Fang
>
> Is it a bug that ManagedEndpoint.getTransportId() just return the endpoint's 
> address. I would expect it return endpoint.getTransportId()
> {code}
>  ManagedEndpoint{   
> @ManagedAttribute(description = "TransportId Attribute", 
> currencyTimeLimit = 60)
> public String getTransportId() {
> return endpoint.getEndpointInfo().getAddress();
> }
> @ManagedAttribute(description = "Address Attribute", currencyTimeLimit = 
> 60)
> public String getAddress() {
> return endpoint.getEndpointInfo().getAddress();
> }
>  }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CXF-1592) DynamicClientFactory throws inside JAXB when presented with Aegis-generated WSDL

2011-03-24 Thread Ilya Muromtsev (JIRA)

[ 
https://issues.apache.org/jira/browse/CXF-1592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010585#comment-13010585
 ] 

Ilya Muromtsev commented on CXF-1592:
-

Still reproduced 
http://stackoverflow.com/questions/825887/cxf-illegalannotationexception-related-to-no-arg-stacktraceelement-constructor

> DynamicClientFactory throws inside JAXB when presented with Aegis-generated 
> WSDL
> 
>
> Key: CXF-1592
> URL: https://issues.apache.org/jira/browse/CXF-1592
> Project: CXF
>  Issue Type: Bug
>Affects Versions: 2.1.1
>Reporter: Benson Margulies
>Assignee: Daniel Kulp
> Fix For: 2.1.1, 2.0.7
>
>
> org.apache.cxf.systest.aegis.AegisClientServerTest now contains an @Ignored 
> test case which tries to create a dynamic client from an Aegis service. One 
> of the problems seems to be that the generated ObjectFactory is trying to 
> perform an unnatural act with a StackTraceElement.
> The result is ...
> java.lang.IllegalStateException: Unable to create JAXBContext for generated 
> packages: 1 counts of IllegalAnnotationExceptions
>   at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:245)
>   at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:150)
>   at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:129)
>   at 
> org.apache.cxf.systest.aegis.AegisClientServerTest.testDynamicClient(AegisClientServerTest.java:161)
>   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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
>   at 
> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
>   at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
>   at 
> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
>   at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
>   at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
>   at 
> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
>   at 
> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
>   at 
> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
>   at 
> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
>   at 
> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
>   at 
> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
>   at 
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
>   at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>   at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>   at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>   at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>   at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts 
> of IllegalAnnotationExceptions
> java.lang.StackTraceElement does not have a no-arg default constructor.
>   this problem is related to the following location:
>   at java.lang.StackTraceElement
>   at public java.lang.StackTraceElement[] 
> java.lang.Throwable.getStackTrace()
>   at java.lang.Throwable
>   at java.lang.Exception
>   at java.lang.RuntimeException
>   at javax.xml.ws.WebServiceException
>   at public javax.xml.bind.JAXBElement 
> org.apache.cxf.systest.aegis.sports.ObjectFactory.createWebServiceException(javax.xml.ws.WebServiceException)
>   at org.apache.cxf.systest.aegis.sports.ObjectFactory
>   at 
> com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
>   at 
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
>   at 
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286)
>   at 
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
>   at 
> com.sun.xml.bind.v2.ContextFactory.createCont

[jira] [Resolved] (CXF-3412) ManagedEndpoint.getTransportId return endpoint address

2011-03-24 Thread Freeman Fang (JIRA)

 [ 
https://issues.apache.org/jira/browse/CXF-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Freeman Fang resolved CXF-3412.
---

   Resolution: Fixed
Fix Version/s: 2.3.4
   2.4

commit fix
http://svn.apache.org/viewvc?rev=1084876&view=rev for trunk
http://svn.apache.org/viewvc?rev=1084877&view=rev for 2.3.x branch

> ManagedEndpoint.getTransportId return endpoint address
> --
>
> Key: CXF-3412
> URL: https://issues.apache.org/jira/browse/CXF-3412
> Project: CXF
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 2.2
>Reporter: David Liu
>Assignee: Freeman Fang
> Fix For: 2.4, 2.3.4
>
>
> Is it a bug that ManagedEndpoint.getTransportId() just return the endpoint's 
> address. I would expect it return endpoint.getTransportId()
> {code}
>  ManagedEndpoint{   
> @ManagedAttribute(description = "TransportId Attribute", 
> currencyTimeLimit = 60)
> public String getTransportId() {
> return endpoint.getEndpointInfo().getAddress();
> }
> @ManagedAttribute(description = "Address Attribute", currencyTimeLimit = 
> 60)
> public String getAddress() {
> return endpoint.getEndpointInfo().getAddress();
> }
>  }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (CXF-3417) Support the injection of contexts into injected Applications

2011-03-24 Thread Sergey Beryozkin (JIRA)
Support the injection of contexts into injected Applications


 Key: CXF-3417
 URL: https://issues.apache.org/jira/browse/CXF-3417
 Project: CXF
  Issue Type: Task
  Components: JAX-RS
Affects Versions: 2.3.3, 2.4
Reporter: Sergey Beryozkin
Assignee: Sergey Beryozkin
 Fix For: 2.4, 2.3.4


JAX-RS 1.1 allows for injecting Applications which in turn can have @Contexts 
injected

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CXF-3379) @Context fails to inject Application instance

2011-03-24 Thread Sergey Beryozkin (JIRA)

[ 
https://issues.apache.org/jira/browse/CXF-3379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010691#comment-13010691
 ] 

Sergey Beryozkin commented on CXF-3379:
---

Hi Ben, just FYI, the injection of Contexts into injected Applications is also 
supported, see
https://issues.apache.org/jira/browse/CXF-3417

thanks, Sergey

> @Context fails to inject Application instance
> -
>
> Key: CXF-3379
> URL: https://issues.apache.org/jira/browse/CXF-3379
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 2.3.3
>Reporter: Ben Noordhuis
>Assignee: Sergey Beryozkin
> Fix For: 2.4, 2.3.4
>
>
> Quoting JSR 311:
> "The instance of the application-supplied Application subclass can be 
> injected into a class field or method parameter using the @Context 
> annotation. Access to the Application subclass instance allows configuration 
> information to be centralized in that class. Note that this cannot be 
> injected into the Application subclass itself since this would create a 
> circular dependency."
> JAXRSUtils.createContextValue() doesn't handle this. This bug exists in 2.3.x 
> and HEAD.
> I'd submit a patch but I don't know where (or if) the Application class is 
> registered after it's instantiated by CXFNonSpringJaxrsServlet.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CXF-3417) Support the injection of contexts into injected Applications

2011-03-24 Thread Sergey Beryozkin (JIRA)

 [ 
https://issues.apache.org/jira/browse/CXF-3417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin resolved CXF-3417.
---

Resolution: Fixed

> Support the injection of contexts into injected Applications
> 
>
> Key: CXF-3417
> URL: https://issues.apache.org/jira/browse/CXF-3417
> Project: CXF
>  Issue Type: Task
>  Components: JAX-RS
>Affects Versions: 2.3.3, 2.4
>Reporter: Sergey Beryozkin
>Assignee: Sergey Beryozkin
> Fix For: 2.4, 2.3.4
>
>
> JAX-RS 1.1 allows for injecting Applications which in turn can have @Contexts 
> injected

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CXF-1940) WS-Trust support in CXF

2011-03-24 Thread Anubhav Sharma (JIRA)

 [ 
https://issues.apache.org/jira/browse/CXF-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anubhav Sharma updated CXF-1940:


Attachment: sts_provider3.zip

Here's a new version with some defect fixes found in the sample Issue 
implementation and code changes suggested by Dan.

> WS-Trust support in CXF
> ---
>
> Key: CXF-1940
> URL: https://issues.apache.org/jira/browse/CXF-1940
> Project: CXF
>  Issue Type: Task
>  Components: WS-* Components
>Reporter: Mayank Mishra
>  Labels: gsoc
> Attachments: BinarySecret.java, Entropy.java, 
> RequestSecurityToken.java, RequestSecurityTokenResponse.java, STS.java, 
> STSClient27Jan.patch, STSImpl.java, SecurityConstants.java, model.zip, 
> sts_provider.zip, sts_provider2.zip, sts_provider3.zip
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (CXF-3418) Transactional JAX-RS Service (Spring 3 + Hibernate 3)

2011-03-24 Thread Ivan Vitoria (JIRA)
Transactional JAX-RS Service (Spring 3 + Hibernate 3)
-

 Key: CXF-3418
 URL: https://issues.apache.org/jira/browse/CXF-3418
 Project: CXF
  Issue Type: Bug
  Components: JAX-RS
Affects Versions: 2.3.2
Reporter: Ivan Vitoria
Priority: Critical


Hello,

I have some JAX-RS servers configured through Spring. Also, i'm using Hibernate 
DAOs and the OpenSessionInViewFilter of Spring-ORM. I have no problem when I 
add the @Transactional annotation to the DAO layer, but i would like to have 
the REST methods in the same transaction, so i've annoated the services. But I 
can't do it, neither annotating the interface nor the classes.  A 
ServiceConstructionException is throwed as soon as I add the @Transactional to 
the service...

A sample NetBeans project is attached. 

Thanks in advance

Ivan

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CXF-3418) Transactional JAX-RS Service (Spring 3 + Hibernate 3)

2011-03-24 Thread Ivan Vitoria (JIRA)

 [ 
https://issues.apache.org/jira/browse/CXF-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Vitoria updated CXF-3418:
--

Attachment: JaxrsTransactional v1.0.part1.rar

> Transactional JAX-RS Service (Spring 3 + Hibernate 3)
> -
>
> Key: CXF-3418
> URL: https://issues.apache.org/jira/browse/CXF-3418
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 2.3.2
>Reporter: Ivan Vitoria
>Priority: Critical
> Attachments: JaxrsTransactional v1.0.part1.rar
>
>
> Hello,
> I have some JAX-RS servers configured through Spring. Also, i'm using 
> Hibernate DAOs and the OpenSessionInViewFilter of Spring-ORM. I have no 
> problem when I add the @Transactional annotation to the DAO layer, but i 
> would like to have the REST methods in the same transaction, so i've annoated 
> the services. But I can't do it, neither annotating the interface nor the 
> classes.  A ServiceConstructionException is throwed as soon as I add the 
> @Transactional to the service...
> A sample NetBeans project is attached. 
> Thanks in advance
> Ivan

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CXF-3418) Transactional JAX-RS Service (Spring 3 + Hibernate 3)

2011-03-24 Thread Ivan Vitoria (JIRA)

 [ 
https://issues.apache.org/jira/browse/CXF-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Vitoria updated CXF-3418:
--

Attachment: JaxrsTransactional v1.0.part2.rar

> Transactional JAX-RS Service (Spring 3 + Hibernate 3)
> -
>
> Key: CXF-3418
> URL: https://issues.apache.org/jira/browse/CXF-3418
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 2.3.2
>Reporter: Ivan Vitoria
>Priority: Critical
> Attachments: JaxrsTransactional v1.0.part1.rar, JaxrsTransactional 
> v1.0.part2.rar
>
>
> Hello,
> I have some JAX-RS servers configured through Spring. Also, i'm using 
> Hibernate DAOs and the OpenSessionInViewFilter of Spring-ORM. I have no 
> problem when I add the @Transactional annotation to the DAO layer, but i 
> would like to have the REST methods in the same transaction, so i've annoated 
> the services. But I can't do it, neither annotating the interface nor the 
> classes.  A ServiceConstructionException is throwed as soon as I add the 
> @Transactional to the service...
> A sample NetBeans project is attached. 
> Thanks in advance
> Ivan

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: CXF client and WAS 7 issue classcast exception

2011-03-24 Thread thanmalv
This issue is resolved. It was related to class loading. Once I resolved that
it worked.

--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-client-and-WAS-7-issue-classcast-exception-tp4258948p4262746.html
Sent from the cxf-issues mailing list archive at Nabble.com.


[jira] [Commented] (CXF-3418) Transactional JAX-RS Service (Spring 3 + Hibernate 3)

2011-03-24 Thread Sergey Beryozkin (JIRA)

[ 
https://issues.apache.org/jira/browse/CXF-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010770#comment-13010770
 ] 

Sergey Beryozkin commented on CXF-3418:
---

Hi Ivan

Can you please remove those attachments and just attach a WAR, with the source 
of your sample code ? The same way as you did it before. I'm not using 
NetBeans. Ideally it is either a Maven project or self-contained WAR with the 
source which we need to reproduce the issue quickly

thanks, Sergey


> Transactional JAX-RS Service (Spring 3 + Hibernate 3)
> -
>
> Key: CXF-3418
> URL: https://issues.apache.org/jira/browse/CXF-3418
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 2.3.2
>Reporter: Ivan Vitoria
>Priority: Critical
> Attachments: JaxrsTransactional v1.0.part1.rar, JaxrsTransactional 
> v1.0.part2.rar
>
>
> Hello,
> I have some JAX-RS servers configured through Spring. Also, i'm using 
> Hibernate DAOs and the OpenSessionInViewFilter of Spring-ORM. I have no 
> problem when I add the @Transactional annotation to the DAO layer, but i 
> would like to have the REST methods in the same transaction, so i've annoated 
> the services. But I can't do it, neither annotating the interface nor the 
> classes.  A ServiceConstructionException is throwed as soon as I add the 
> @Transactional to the service...
> A sample NetBeans project is attached. 
> Thanks in advance
> Ivan

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (CXF-3419) Unify osgi transport and servlet transport

2011-03-24 Thread Christian Schneider (JIRA)
Unify osgi transport and servlet transport
--

 Key: CXF-3419
 URL: https://issues.apache.org/jira/browse/CXF-3419
 Project: CXF
  Issue Type: Improvement
Reporter: Christian Schneider
Assignee: Christian Schneider
 Fix For: 2.4




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (CXF-3420) WEB-INF/cxf-servlet.xml causing cross application issues

2011-03-24 Thread Yogesh (JIRA)
WEB-INF/cxf-servlet.xml causing cross application issues


 Key: CXF-3420
 URL: https://issues.apache.org/jira/browse/CXF-3420
 Project: CXF
  Issue Type: Bug
  Components: Configuration
Affects Versions: NeedMoreInfo
 Environment: CXF 2.1.3, Jboss 4.2.3, JDK 1.6
Reporter: Yogesh


We have two applications
ProjectA
ProjectB

ProjectA contains cxf-servlet.xml file inside WEB-INF directory while ProjectB 
doesnt contain this file. For Project B, the configuration for loading 
webservices are done via separate file and the path for same is configured in 
WEB-INF file.

When both the applications are deployed, it deploys ProjectA first and then 
starts deploying ProjectB
While deploying ProjectB, it logs following statement
10:52:43,567 ERROR [STDERR] Mar 25, 2011 10:52:43 AM 
org.apache.cxf.transport.servlet.CXFServlet loadAdditionalConfig
INFO: Build endpoints from config-location: /WEB-INF/cxf-servlet.xml
and throws error as classnotfoundexception.

It is strange to see that there is no cxf-servlet.xml file inside ProjectB and 
still CXF tries to load it. Dont know why, but somehow it is getting the file 
defined in ProjectA and starts loading those beans inside ProjectB.

Can you let us know what could be the reason behind such cross-reference files 
getting loaded by CXF?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira