Cómo desplegar Apache CXF Web Services en OC4J

Hola a todos tengo este problema:
He realizado una web service con apache CXF, al desplegarlo en tomcat todo funciona bien
pero cuando lo despliego en oc4j 10g R2 no funciona, he estado leyendo y me dicen que tengo que configurar oc4j para cxf
pero no se que configuraciones realizar, espero me ayuden...
Saludos a todos

The OC4J 10.1.3.4 release has moved the out of the box libraries OC4J supplies for JAX-RPC/WS into a named/versioned shared-library called "oracle.ws.jaxrpc".
This means you can now easily "unimport" these out of the box implementation from the view of an application, and replace them with newer implementations such as that provided by the Apache CXF distribution by publishing it as a corresponding shared-library and importing that into the application.
See the documentation for 10.1.3.4 which describes this: http://download.oracle.com/docs/cd/E12524_01/web.1013/e12290/opensrc.htm#BABDDAIF
-steve-

Similar Messages

  • Build script for CXF web service using ant.

    Hi, I am trying to build a CXF web service using ant. Does any one have a sample build script for it or steps (such as 1. build wsdl using java2wsdl task, 2. create a war etc.....) to follow to successfully build a web service using Apache CXF and ANT? Your help is greatly appreciated. I am using tomcat server and spring.
    Thanks

    Hi,
    You can find and download sample of project and build scripts from
    'Design and implement POJO Web services using Spring and Apache CXF, Part 1: Introduction to Web services creation using CXF and Spring':
    http://www.ibm.com/developerworks/library/ws-pojo-springcxf/

  • Apach AXIS Web Service Queries

    Hi All,
    we are thinking to use Apache AXIS Web Service. We have few compatibility queries for Axis Web Service
    Does it support complex types (i.e. Array of Java Objects if my web service returns)? If yes do you have any documentation?
    How do we convert SOAP fault into Application specific exception?
    How to encode SOAP messages?
    Ideal size of SOAP messages?
    Let me know if you require more information.
    Thanks
    Chintan

    I've just looked into this a bit more and discovered that AXIS will use log4j provided that an implementation of log4j is on the classpath of the server or client. Like I said before, what I would do is provide an implementation of log4j on the classpath and then provide a log4j.properties (or xml) file in the classpath.
    From the docs:
    Axis includes a preconfigured log4j.properties file in axis.jar. While this is adequate for basic use, any complex project will want to modify their own version of the file. Here is what to do
    1. Open up axis.jar in a zipfile viewer and remove log4j.properties from the jar
    2. Or, when building your own copy of axis.jar, set the Ant property exclude.log4j.configuration to keep the properties file out the JAR.
    3. Create your own log4J.properties file, and include it in WEB-INF/classes (server-side), in your main application JAR file client side.
    4. Edit this log4J properties file to your hearts content. Server side, setting up rolling logs with fancy html output is convenient, though once you start clustering the back end servers that ceases to be as usuable. Log4J power tools, such as 'chainsaw', are the secret here.
    If you want to remove logging altogether you can try just removing the log4j.properties file from the axis.jar. I wouldn't recommend this though and I have no idea what affect this will have ...

  • Not able to deploy axis2 web service on oc4j 10g server

    Not able to deploy axis2 web service on oc4j 10g server, getting internal server every time I click on services link....
    Edited by: 974237 on Nov 30, 2012 4:17 AM

    Not able to deploy axis2 web service on oc4j 10g server, getting internal server every time I click on services link....
    Edited by: 974237 on Nov 30, 2012 4:17 AM

  • Can Jdeveloper 10.1.3 deploy web service on OC4J 10.1.2?

    Hi all,
    Can I use jdeveloper 10.1.3 develop, and deploy web service on OC4J 10.1.2? My jdk version is 1.4.2. Thanks in advance.

    We don't have a direct connection from JDev 10.1.3 to OC4J 10.1.2 - we do have a connection to OAS 10.1.2.
    If you want to deploy to a stand alone OC4J 10.1.2 then just create the WAR file in JDeveloper - and then use the OC4J admin interface to deploy the WAR.

  • Can we deploy a java web service on OC4J within EBS 12.1.3

    Hi,
    I needed some instructions if this is possible to deploy a java web service on OC4J in EBS 12.1.3.
    We don't have SOA gateway integration. The web service is simple SOAP web service.
    Is there any document that can be referred for this ?
    Thanks

    I would try a number of things:
    1) Try generating the web service artifacts by using the web service assembler tool that comes with oc4j 10.1.3 dp3. You can use either the command line or ant assembly tasks that are available with the download. There are some fairly detailed examples of using the ant tasks for web service generation at http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/index.html (under the "web services" heading).
    2) Try deploying the generated ear file using the admin console. I believe that should work.
    3) If for some reason that doesn't work you can try to use the deployment ant tasks (also detailed in the how to examples).
    I believe the reason you did not deploy successfully is that even though the core service implementation class, SEI, and JAX-RPC descriptor are portable the artifacts generated in order to deploy the service to a particular application server are unique. JWSDP is tailored to the sun platform.
    Hope that helps.
    -- Jon

  • Getting error in cxf web service with spring 3.0.

    I developed a web service using cxf. Implemented the client codes to invoke the web service.
    The client codes running fine through JUnit test case but whenever I try to invoke the client through another service (after actual UI integration),
    its throwing error while initializing the service. I'm using cxf 2.2.7 with spring 3.0
         // configuration stuffs
         public static final QName SERVICE_NAME = new QName("http://perksplus.com/WebServices/HealthPrize/Rewards/", "Rewards");
         //@Value("@{perks.api.wsdl.location}")
         private String wsdlLocation="https://www.perksplus.com/WebServices/HealthPrize/Rewards.asmx?wsdl";
         protected Rewards loadWSDL(){
            URL wsdlURL = null;
              try {               
                  setApplicationContext(applicationContext);
                  Resource lResource = getApplicationContext().getResource(wsdlLocation);
                   wsdlURL = lResource.getURL();
              } catch (MalformedURLException e) {
                   LOG.error("Invalid wsdl URL"+e);
              } catch (IOException e) {
                   LOG.error("Error while loading the file"+e);
              this.rewards = new Rewards(wsdlURL, SERVICE_NAME); *// ERROR THROWING AT THIS LINE*
              return this.rewards;
         }Error stacktrace
    javax.servlet.ServletException: org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(Lorg/xml/sax/InputSource;Lorg/springframework/core/io/Resource;)I" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/apache/cxf/bus/spring/ControlledValidationXmlBeanDefinitionReader, and its superclass loader (instance of org/apache/catalina/loader/StandardClassLoader), have different Class objects for the type org/springframework/core/io/Resource used in the signature
    Can someone please help me here, to figure out whats wrong I'm doing or if I' m missing anything which causing this error?
    (Thanks in adv).

    My understanding of exception stack trace is that the two class loader are unable to match the argument type org/springframework/core/io/Resource in original method and its overridden method. And original method class loader and overridden method class loader are different.
    This normally happens due to class clashes.

  • Licensing question for managing web services within OC4J

    I was wondering if there is a separate license cost to run/manage/secure web services running in OC4J under OAS 10g Enterprise Edition?
    thanks

    The OC4J 10.1.3.4 release has moved the out of the box libraries OC4J supplies for JAX-RPC/WS into a named/versioned shared-library called "oracle.ws.jaxrpc".
    This means you can now easily "unimport" these out of the box implementation from the view of an application, and replace them with newer implementations such as that provided by the Apache CXF distribution by publishing it as a corresponding shared-library and importing that into the application.
    See the documentation for 10.1.3.4 which describes this: http://download.oracle.com/docs/cd/E12524_01/web.1013/e12290/opensrc.htm#BABDDAIF
    -steve-

  • List available Web services on OC4J?

    Is there any Java API which lists Web services that are deployed to an OC4J instance?
    We cannot use API such as UDDI4J because the Web services may have not been registered although they have been deployed to OC4J.
    Any pointers on relevant documents are welcome.
    Thanks,
    Jim

    The OC4J 10.1.3.4 release has moved the out of the box libraries OC4J supplies for JAX-RPC/WS into a named/versioned shared-library called "oracle.ws.jaxrpc".
    This means you can now easily "unimport" these out of the box implementation from the view of an application, and replace them with newer implementations such as that provided by the Apache CXF distribution by publishing it as a corresponding shared-library and importing that into the application.
    See the documentation for 10.1.3.4 which describes this: http://download.oracle.com/docs/cd/E12524_01/web.1013/e12290/opensrc.htm#BABDDAIF
    -steve-

  • How to create secure EJB web service in Oc4J using JDeveloper?

    We are going to develop a EJB web service running in OC4J using JDeveloper 10.1.3.3.
    By using the JDeveloper feature, we can simply create the web service by using the "Web Service Endpoint Interface" in the session bean.
    However, unlike the web service created from Java class, I can't find any option to change the security setting of this web service. We tried adding annotation like @DenyAll for testing, but there has no effect and related method can still be called without WS-Security header.
    Now, we can only change the security setting via the web console after deployment (select the web service, then enable security in administration page, and then edit security configuration to change the inbound policies for authentication). It works in our local machine, but it may not work in the production environment as we cannot touch the em console.
    May I know if there has any way to include the security setting inside the project?
    Thanks in advance.

    If I am not wrong, you might be probably talking about this :
    http://docs.oracle.com/cd/B40099_02/books/EAI2/EAI2_WebServices33.html#wp179056
    In order to implement the SOAP header, you would have to :
    (1) Define SOAP header in the wsdl of the service.
    (2) Add a new soap binding in the wsdl, which contains soap header and soap body.
    I think, this should get you going..

  • Java.security.PrivilegedActionException while invoking web service on OC4J

    Hi,
    I have a developed web service in Jdeveloper which is hosted on OC4J app server. I am able to invoke it properly and get results using the web service end point in browser window.
    Now I created a java proxy for this WS in Jdeveloper and tried invoking it inside another web service. I get the following error while the 1st WS is invoked:
    2010-03-09 17:15:04.607 WARNING Unable to connect to URL: <internal web service URL> due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
    10/03/09 17:15:04 java.rmi.RemoteException: ; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect
    10/03/09 17:15:04      at autoauthorise.runtime.VehicleTypeSpecsWSSoapHttp_Stub.getVehicleTypeSpecs(VehicleTypeSpecsWSSoapHttp_Stub.java:91)
    10/03/09 17:15:04      at com.bt.vehtype.ws.VehicleTypeSpecsWSSoapHttpPortClient.getVehicleTypeSpecs(VehicleTypeSpecsWSSoapHttpPortClient.java:40)
    10/03/09 17:15:04      at com.bt.fleet.willow.ws.AutoAuthorise.autoAuthorise(AutoAuthorise.java:20)
    10/03/09 17:15:04      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10/03/09 17:15:04      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    10/03/09 17:15:04      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10/03/09 17:15:04      at java.lang.reflect.Method.invoke(Method.java:585)
    10/03/09 17:15:04      at oracle.j2ee.ws.server.ImplInvocationHandler.invoke(ImplInvocationHandler.java:126)
    10/03/09 17:15:04      at $Proxy0.autoAuthorise(Unknown Source)
    10/03/09 17:15:04      at com.bt.fleet.willow.ws.runtime.AutoAthoriseWSSoapHttp_Tie.invoke_autoAuthorise(AutoAthoriseWSSoapHttp_Tie.java:62)
    10/03/09 17:15:04      at com.bt.fleet.willow.ws.runtime.AutoAthoriseWSSoapHttp_Tie.processingHook(AutoAthoriseWSSoapHttp_Tie.java:161)
    10/03/09 17:15:04      at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:287)
    10/03/09 17:15:04      at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:356)
    10/03/09 17:15:04      at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:283)
    10/03/09 17:15:04      at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:272)
    10/03/09 17:15:04      at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:94)
    10/03/09 17:15:04      at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:128)
    10/03/09 17:15:04      at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:170)
    10/03/09 17:15:04      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    Please help, I cant see any problem.
    Edited by: Ankit_Screen on Mar 11, 2010 6:27 AM

    can't anybody help me?

  • Unknown site error while deploying web services using OC4J

    Hi,
    I have been testing the deploying webservices examples using demo.zip on OTN site.
    I have trouble in binding the web application name to stand alone OC4J.
    I am running stand alone OC4J server fine. I verified the website http://localhost:8888, which is running fine.
    If I issue the command
    java -jar admin.jar ormi://localhost:23791 admin password1 -bindwebapp demo_ejb_web_service HelloService_web http://localhost:8888/ sejb_webservices
    I get error
    oracle.oc4j.admin.internal.DeployerException: Unknown site: http://localhost:8888/
    What is the http-web-site address that needs to be given for binding web app, if I am running local standalone OC4J with no default port changes?
    Thanks,
    Mohan

    Eric,
    Thanks for the response. But, still I am not able to bind web-application to OC4J.
    Here is how my server.xml has defined the web-site tag:
    <web-site default="true" path="./http-web-site.xml" />
    My http-web-site.xml has following web-site tag:
    <web-site port="8888" display-name="OC4J 10g (10.0.2) HTTP Web Site">
    <default-web-app application="default" name="defaultWebApp"/>
    <web-app application="default" name="dms0" root="/dms0" access-log="false" />
    <web-app application="default" name="dms0" root="/dmsoc4j" access-log="false" />
    <web-app application="default" name="admin_web" root="/adminoc4j"/>
    <access-log path="../log/http-web-access.log"/>
    </web-site>
    I used the following command to bind the example web service:
    java -jar c:\XtendTools\oc4j\j2ee\home\admin.jar ormi://localhost admin password1 -bindWebApp demo_ejb_service HelloService_web default-web-site /sejb_services
    I get "oracle.oc4j.admin.internal.DeployerException: Unknown site: default-web-site" error.
    I tried to use following names as http-web-site, but nothing works.
    "http://localhost:8888"
    "dms0"
    "adminoc4j"
    I downloaded stand alone OC4J 10.1.2 from OTN and tried these samples.
    Your help will be appreciated.
    Thanks,
    Mohan

  • Database Web Services and OC4J in Oracle Database Standard Edition

    Hi all,
    Oracle Database Standard Edition has database web services, which require OC4J if the database is to be used as web service provider. So, can OC4J be used in production with Oracle Database Standard Edition?
    Thank you for this clarification :)
    Mitko

    Yes. :)

  • Web  Services in OC4J 10.1.2 0.0 vs 10.1.2.0.2

    Does anyone out there know what changed for Web Service clients between 10.1.2.0.0 and 10.1.2.0.2. I have a Stub generated via JDeveloper 10.1.2 what works fine on all operations ona 10.1.2.0.0 server, but on a 10.1.2.0.2 server one of the critical services fails with the following exception:
    06/09/14 13:50:14 JAXRPCTIE01: caught exception while handling request:
    deserialization error: unexpected XML reader state. expected: END but
    found: START: noteBody
    06/09/14 13:50:14 [SOAPException: faultCode=env:Client; msg=JAXRPCTIE01:
    caught exception while handling request: deserialization error:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I have found the solution:
    The Content Services Libraries include a saaj-api.jar (for soap messages between the cs client java code and the server side webservices api).
    Unfortunately, the preconfigured oc4j container downloaded from otn included an older version of saaj.jar in its j2ee/home/applib directory, which of course was found before the cslib version according to the default order in which class paths are read.
    All I had to do was remove he saaj.jar from the oc4j/j2ee/home/applib directory so that content services could find its own (more upto date) version

  • Bad response in a Web Service on OC4J with many concurrrent clients

    We have a Web Service in a OC4J container, this Web Services invoke the business services from another complex application (another ear with EJBs in the same container) with RMI connections.
    We need this web service support many concurrent clients, but in our tests the performance is very bad, the web service supports ten concurrent clients in a long response time for all of them, (for one client the Web Service responses in 3 seconds / for 10 clients in 45 seconds) if we test with 20 concurrent clients, the web service can´t process at least 15 requests , the other 5 finish well
    What can I do to improve the performance with many concurrent clients (100 +)

    Hello,
    I am quite surprised...
    Could you please give us more information about your environment and behavior:
    1- which version of oracleAS, WS and J2EE are you using?
    2- do you have any information in the application log about possible source of error?
    3- Any information about performance of the different layers?
    Can you simplify the flow by creating the service in the same EAR than the EJB and void RMI calls for example?
    regards
    Tugdual Grall

Maybe you are looking for

  • Droid Razr problems

    Has anyone else had problems with the Droid Razr flickering (flashes on and off in about a second) and it does it all day long for no apparent reason? I have turned it off for awhile to see if it stops, I have removed my gmail accounts (saw in a disc

  • Age Analysis report for asset

    Hi All, I have to create a Age analysis report for FI documents which have line items with posting key 75 & 70 (Asset) Given logic is 1 Selection screen has parameters  - Company code, Key date 2 Need to take all line items with posting key 70 & 75 (

  • HT4623 i want to downgrade my iphone 4s from 7.1 to 6.1.4 as the battery is draining very fastly

    Can some help me to downgrade my iphone 4s ios 7.1 to 6.1.4 or to get more battery life. I have turned off all the option like location services etc.. I am really unsatisfied with iphone 4s battery.

  • Large pdf file after editing

    Hi- I recently scanned catalogs for a website I manage to make them available on line. The company owner indicated he needed some material removed from each page so I brought each page into PhotoShop, cloned out the material and re-saved each page as

  • Opening Panel - Change colour  and or contrast.

    How can I change the contrast and.or colour s on the front Panel to make it easier to see the various menus. I have recently started to loose some of my sight and the opening Panel is now difficult to  read / work through. Is it possible to show the