Startup class is run before web services are deployed

Hello, I need to run a class at server start-up which uses web services deployed on the same Weblogic server.
I'm using Weblogic startup class, which fires after the server is up and all modules have been deployed.
However, it is fired before web services are deployed, so this solution doesn't work.
Is there a way to have a class that is run by Weblogic after web services are deployed?
Right now I'm using a timer that polls the server till the services are up and running, but I hope there's a cleaner way.
thanx,
Mike

Thanx for response.
Looking at the logs, the following came to light.
1. My app does get deployed last, but the ServletContextListener in my app is fired after all modules "...transitioned from STATE_PREPARED to STATE_ADMIN".
It took a few more seconds for all modules to transition "from STATE_ADMIN to STATE_ACTIVE".
2. After all modules transitioned to STATE_ACTIVE, the log shows this:
<Channel "DefaultSecure" is now listening on xxx.xxx.xxx.xxx:443 for protocols iiops, t3s, ldaps, https.>
I assume that only at this point are web services accessible. The error that I get when trying to invoke a web service from ServletContextListener is:
java.net.ConnectException: Tried all: 1 addresses, but could not connect over HTTPS to server: RLOCVGVY91 port: 443
     at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:289)
So I dunno... If my ServletContextListener waits for 10 seconds, everything works.
Mike

Similar Messages

  • Which JAR's are required to run a Web Service Proxy?

    Hi,
    I successfully generated a Web Service Proxy, which runs when I start it in JDeveloper. However when I generate a JAR with all classe files, and try to start the main class of this JAR I get the following error:
    java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceFactory
    Which additional JAR's do I need to run the Web Service Proxy outside JDeveloper.
    Note, that I have JRE 1.4 and not 5!
    Thanks for hints Thomas

    Hi,
    the class is part of Java EE 5 platform. So you need to run it n that context
    Frank

  • Error when running the Web Services java client file

    Hi,
    I am working on web services with 9iAS.
    I am using the StatelessExample file included during installation.
    The ear file was created and the application was deployed using OEM Web.
    But when I try to execute the client java file StatelessClient. I get an error. The error is something about content type.
    The error message is pasted below.
    And also how do I run the web service on the browser.
    Please help.
    regards
    Kamlesh
    D:\ora9ias_portal\j2ee\home\demo\web_services\java_services\client>java -classpa
    th .;StatelessExample_proxy.jar;%CLASSPATH%; StatelessClient
    Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu
    pported response content type &quot;text/html&quot;, must be: &quot;text/xml&quo
    t;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;500 Internal Server Error&lt;/TITLE&gt;&lt;
    /HEAD&gt;&lt;BODY&gt;&lt;H1&gt;500 Internal Server Error&lt;/H1&gt;&lt;PRE&gt;or
    acle.j2ee.xanadu.JasperGenerationError: no source generated during code generati
    on!: 1 in getFile name: oracle\j2ee\ws_example\StatelessExample.class
    &lt;br&gt;1 in getFile name: oracle\j2ee\ws_example\StatelessExample.java
    &lt;br&gt;error: error message &apos;class.format&apos; not found&lt;br&gt;binar
    y class definition not found: oracle.j2ee.ws_example.StatelessExample
    &lt;br&gt;
    &lt;br&gt;      at oracle.j2ee.ws.JavaWrapperGenerator.generate(JavaWrapperGener
    ator.java:267)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebServi
    ce.java:662)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:436)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:76
    7)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:309)
    &lt;br&gt;      at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
    &lt;br&gt;      at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    &lt;br&gt;      at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    &lt;br&gt; at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java
    :283)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:2
    69)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util
    .ThreadPoolThread.run(ThreadPoolThread.java:64)
    &lt;br&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
    at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:201)
    at org.apache.soap.rpc.Call.invoke(Call.java:260)
    at oracle.j2ee.ws_example.proxy.StatelessExampleProxy.makeSOAPCallRPC(St
    atelessExampleProxy.java:51)
    at oracle.j2ee.ws_example.proxy.StatelessExampleProxy.helloWorld(Statele
    ssExampleProxy.java:35)
    at StatelessClient.main(StatelessClient.java:8)

    If you are getting this error, then you are most likely compiling your code with a different JVM than what is shipped with the application server. Oracle9iAS Release 2 (9.0.2) uses the JDK1.3.1. I got this error when I compiled the code with JDK1.4.0_01.

  • Error when running P6 web services Demo

    Hi All,
    I am trying to run P6 web services demo application, p6 web services server is running, however I get this error when running the demo application:
    org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
    Appreciate if someone can help me to resolve it.
    Thanks in advance

    If you are getting this error, then you are most likely compiling your code with a different JVM than what is shipped with the application server. Oracle9iAS Release 2 (9.0.2) uses the JDK1.3.1. I got this error when I compiled the code with JDK1.4.0_01.

  • Web Services are protocols independent?

    Hi Guys,
    I want to know that Web Services are protocol independent? if yes, can i develop a web service in other protocols excepts HTTP and SOAP. Please describe in details.

    Hello,
    I will say it depends how you are qualifying Web Services and related technologies.
    Historically, Web services have been build to use protocol and technologies that will work using Internet technologies and be compliant with Firewall and other internet layers...
    So the network protocols were HTTP/HTTPS.Also, because the service has to be decoupled from the implementation, so we use XML and data representation using Schemas, all define in a wire protocol SOAP.
    So initially Web Services are based on SOAP over HTTP/HTTPS, and the description of the services, the different message types is done in the WSDL, that is itself an XML document. Since the message is an XML document, it is possible to send it using any protocol, the idea being you send the SOAP request to a server the server deal with it and send a response all using SOAP representation. This is why for example in the Oracle Web Service stack in addition to HTTP/HTTPS, you can use JMS as the communication protocol.
    But I also want to add some information about WSIF (Web Services Invocation Framework), where in addition to SOAP, you can use "native" layer to call a Web Service. The idea being that for example if you are building a service where the clients are either hosted on the same server as the service, or remote and outside the firewall... You want in this case to be able to call your java implementation class from the container when you are local, and when a customer wants to call the service from the internet uses the SOAP/HTTP protocol. To learn more about WSIF take a look to this OTN Article: Web Services—Anyhow, Anywhere
    So as you can see Web Services are protocol intependent.
    Regards
    [urlhttp://blog.grallandco.com]Tugdual Grall

  • Plz help to run the web service

    I have developed one web service & also deployed on tomcat 5.0 using Axis1.1. I have checked the wsdd & wsdl files in the browser.
    It is all ok.
    when sending some request from web service client
    by the following method & parameters
    SDNScan(java.lang.String,java.lang.String,double)
    It goes to the server end & also perform scanning from the database.
    but while sending List[] object back from web service server to the client it displays following message on the browser
    (500)Internal Server Error
    I am using Tomcat5.0 & Apache Axis with j2sdk1.4
    Is there any deployment problem I am facing..
    Plz hel me.
    The full stack trace is given below:
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (500)Internal Server Error
    faultActor:
    faultNode:
    faultDetail:
    {}string: return code: 500
    <html><head><title>Apache Tomcat/5.0.27 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.io.IOException: No serializer found for class biz.infrasofttech.aml.database.DatabaseDynaDAO in registry org.apache.axis.encoding.TypeMappingImpl@18bdc7a
    org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
    org.apache.axis.SOAPPart.writeTo(SOAPPart.java:272)
    org.apache.axis.SOAPPart.getAsString(SOAPPart.java:483)
    org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:375)
    org.apache.axis.Message.getContentType(Message.java:399)
    org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:887)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:339)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.0.27</h3></body></html>
    (500)Internal Server Error
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:2248)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at biz.infrasofttech.aml.processes.SDNSearchWSSoapBindingStub.performSDNScanWeb(SDNSearchWSSoapBindingStub.java:233)
    at biz.infrasofttech.aml.processes.SDNSearchWSProxy.performSDNScanWeb(SDNSearchWSProxy.java:51)
    at org.apache.jsp.sampleSDNSearchWSProxy.Result_jsp._jspService(Result_jsp.java:142)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)
    I am not getting any thing.
    Is there any other tool for creating a web service
    Plz help.
    Thanx in advance

    Plz Tell me how I get the HTML Tag through the java code.

  • Enterprise Manager can't show web-service in the web-services area

    I'm deploying my application(stateless web-service) it work's well, but Enterprise Manager show that it's not a web-service, it can't show application in the web-services area, this fuсking server have many-many-many bugs and errors (fuсking developers was drunken a lot, imho), documentation's have many errors too, and I hate this server, but I need to use it on my work :-(
    p.s. read documentation's carefully it have many errors.
    p.p.s. From Russia with LOVE! Russian developers are the best from the best!

    Hello,
    Could you be more specific about the version of OracleAS you are using?
    - which exact version ? (10.1.3.x, 10.1.2.x or 9.0/x)
    - which kind of Web Service are you developing? (J2EE 1.4/JAX-RPC or earlier version)
    Also if you find bug in the documentation or product please send let the Oracle Support Service knows.
    Regards
    Tugdual Grall

  • Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.

    Hi,
    I am using EWS Java APIs and passing OAuth tokens to fetch data from office 365 mailboxes.
    Because I am developing Web APIs I preferred using "Application Permissions" defined in Azure active directory application for Office 365, and used "client credential flow" OAuth flow to fetch OAuth token specific to application which will
    allow "Have full access via EWS to all mailboxes in the organisation".
    After fetching token with the procedure specified in the document "http://blogs.msdn.com/b/exchangedev/archive/2015/01/21/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx"
    I passed this token to EWS Java APIs,
    it gave me error saying:
    microsoft.exchange.webservices.data.ServiceResponseException: Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.
    I tried similar thing with EWS managed APIs for .net. Got similar error.
    Can anyone provide some help and direction to resolve this error.
    Thanks & Best Regards,
    Pranjal

    I see you found an answer with the X-AnchorMailbox header on StackOverflow:
    http://stackoverflow.com/questions/29554724/exchange-web-services-are-not-currently-available-for-this-request-because-none

  • Running a web services applicatio​n without time-run engine

    Is possible for my clients (without run-time engine) to run my web service aplikation?

    Thanks for all the responses I got,
    Martin, Thank you
    I tried the same advises on my static IP address and it works fine, and very quickly some times, thank you.
    My Appache function well and I test a sample webpage.
    The domain name did not succeed in my network, may be because its a fake one, I do not really know but I already have an active domain but want to use it when the things will work for sure in all the aspects, and finish the tests.
    Your advises were very useful for me.
    But I still get the TCP_Error with timeout, some times, I think, the issue is related to the network now (not sure, but the tests takes long time and I prefere to let you know the development for now) , I'm trying to fix the network, as much as I can to get the perfect performance. But I just wonder about the Listener , may be there is something we need to change, still testing
    Did you tried your applications onsite from multiple workstations at the same time in Oracle XE using your web server?
    Appriciate your help and all other attendants.
    Thanks

  • Netbeans 4.1: JSR-109 web services are only supported in j2ee 1.4 apps

    There is no way to create web services in NetBeans 4.1 with Tiger (jdk 1.5).
    Because when you try to create a web service in NB4.1, you will straight away get an message in the New Web Service window:
    JSR-109 web services are only supported in j2ee 1.4 applications.

    JSR-109 web services are only supported in j2ee 1.4
    applications.Do you have J2EE 1.4 SDK installed?

  • Web Service - Cannot Deploy on Local OC4J

    We get the following error when trying to deploy the following code as a web service to the local OC4J.
    The parameter of domDoc of type oracle.xml.parser.v2.XMLDocument cannot be serialized into XML, and no custom serializer has been defined for it.
    All we want to do with this service is connect to the database and return the results of the query in XML. We have tried a string, but it returns a string of XML and we need it to return the XML.
    The code compiles, runs, and looks as though it is returning what it is suppose to if we write the return out, but the code will not deploy as a web service.
    Thanx so much
    Pam
    This is the code:
    package getuserform;
    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import oracle.xml.parser.v2.XMLDocument;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class getUserInfo {
    public int GetUserInfo(XMLDocument domDoc){
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    } catch (SQLException e) {
    // TODO
    return(-1);
    String url = "jdbc:oracle:thin:@db:1521:v9it";
    Connection myCon;
    try {
    myCon = DriverManager.getConnection(url,"user","password");
    } catch (SQLException e) {
    // TODO
    return(-1);
    OracleXMLQuery qry = new OracleXMLQuery (myCon,
    "select upper(t.u_name_frst) || ' ' || upper(t.u_name_last) U_Name," +
    " t.user_id, " +
    " t.active Active, " +
    " to_char(t.termination_dt, 'DD-MON-YYYY') Termination_DT, " +
    " '(' || t.area_code || ') ' || t.phone_no Phone, " +
    " t.email Email, " +
    " t.city City, " +
    " (select dpl_desc from schema.dept_pay_locations dpl where dpl.dpl_num = t.pay_location) Pay_Location, " +
    " t.LOCATION Location " +
    " from schema.users t " +
    " where upper(t.user_id) like upper ('u227%')");
    // xmlStr = qry.getXMLString(); works.
    // return (qry.getXMLString()); works
    // !work
    domDoc = (XMLDocument)qry.getXMLDOM();
    qry.close();
    return(0);
    }

    Hi Pam,
    It is using Element as the method return that is causing the problem. As you've seen this means that the Data Control has no concrete schema types to associate with the fields so it fails.
    I have a couple of possible workarounds.
    1. Is it a requirement to write your SQL query in the method? Perhaps they are to be dynamic?
    If not, have you considered using the database to do the query and publishing that as the service. This would work around the problem. You can use JDeveloper to do all of this if you 'wrap' the query in a PL/SQL package in the database. Then use the 'Web Service from PL/SQL Package' wizard to generate the web service including wrapper Java classes for the package and DB connection/mgmt classes.
    Or you can publish the actual Query as a service - using the command line (unfortunately you can't use JDEV to do this)
    2. You mentioned the XSD for the query - if you have that then you can use a custom serializer and map your XSD to the return type of your method - the org.w3c.dom.Element class:
    a. if your web service is already generated - open properties (Web Services Editor)
    b. go to Custom Mappings page
    c. click Add
    d. for Java Class type in org.w3c.dom.Element
    e. for XML Qualified Name add your XSD
    f. add your serializer class - here is one I made earlier!
    package project3;
    import java.util.Map;
    import javax.xml.namespace.QName;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPException;
    import oracle.webservices.SOAPUtil;
    import oracle.webservices.databinding.SOAPElementSerializer;
    import org.w3c.dom.Element;
    public class DummyElementSerialiser implements SOAPElementSerializer
    public void init(Map map)
    public SOAPElement serialize(QName qName, Object object)
    try
    return SOAPUtil.toSOAPElement((Element) object);
    catch (SOAPException ex)
    return null;
    if you're generating the service from scratch this same mapping page comes up as part of the wizard
    Now you should be able to create your data control
    rgds
    Susan

  • (266758030) Can WebLogic Workshop Web Services be deployed on a different Application Server?

    (266758030) Q(asked by Lalit Sudan): Can WebLogic Workshop Web Services be deployed
    on a different Application Server?
    A(by Adam Fitzgerald): .jws files are not yet an accepted standard so you can expect
    that the WebLogic Workshop Web Services cannot be ported to other Application Servers,
    however, it is a general goal to expand the functionality of the Workshop tool for
    other App Servers.

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • Error while running 10g web services tutorial

    I am trying to learn and evaluate JDev 10g. I followed the web services tutorial for 10g. In the end when I tried to run the example I get the following error. Any help will be appreciated. Thanks.
    PS: I am also seeing this error in the message pane for the embedded server "Source Files\JDeveloper\j2ee\home\oc4j.jar;C:\Program does not exist."
    C:\Program Files\JDeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\JavaWebService\Model\classes;C:\Program Files\JDeveloper\jdev\lib\jdev-rt.jar;C:\Program Files\JDeveloper\jdev\lib\jdev-rt.jar;C:\Program Files\JDeveloper\soap\lib\soap.jar;C:\Program Files\JDeveloper\lib\xmlparserv2.jar;C:\Program Files\JDeveloper\jlib\javax-ssl-1_2.jar;C:\Program Files\JDeveloper\jlib\jssl-1_2.jar;C:\Program Files\JDeveloper\j2ee\home\lib\activation.jar;C:\Program Files\JDeveloper\j2ee\home\lib\mail.jar;C:\Program Files\JDeveloper\j2ee\home\lib\http_client.jar webservtest.EmbeddedMyPersonWSStub
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type &quot;text/html&quot;, must be: &quot;text/xml&quot;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;500 Internal Server Error&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;500 Internal Server Error&lt;/H1&gt;&lt;PRE&gt;Servlet error: Cannot generate Class: &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
         at org.apache.soap.rpc.Call.invoke(Call.java:268)
         at webservtest.EmbeddedMyPersonWSStub.sayHello(EmbeddedMyPersonWSStub.java:175) at webservtest.EmbeddedMyPersonWSStub.main(EmbeddedMyPersonWSStub.java:40)
    Process exited with exit code 0.

    Hi,
    Unfortunately, your web service is failing at runtime because JDeveloper (and more specifically, the embedded OC4J) is installed in a directory whose path contains a space character. If you move JDeveloper from "Program Files" to another directory, perhaps "Program_Files", then it'll all go smoothly.
    Apologies if this causes you inconvenience.
    Regards,
    Alan.

  • Erorr calling long running sync web service

    Hello
    I have definied simple async process:
    assign (from process input to ws invoke input)
    sync ws invoke
    assign (from ws invoke output to process output)
    Sync Web Service is long running (few minutes). In order to avoid timeout I have accordingly set sync-max-wait-time property.
    I have observed that after starting process instance I can't see it in BPEL Console (however I know it is working). Furthermore when invoke activity ends (so instance state must be saved in database) I can see following error on system console:
    <BaseCubeSessionBean::logError> Error while invoking bean "delivery": Cannot ins
    ert audit trail.
    The process domain was unable to insert the current log entries for the instance
    "2314" to the audit trail table. The exception reported is: RollbackException:
    The transaction has been marked for rollback (timed out)
    Please check that the machine hosting the datasource is physically connected to
    the network. Otherwise, check that the datasource connection parameters (user/p
    assword) is currently valid.
    sql statement: INSERT INTO audit_trail ( cikey, domain_ref, count_id, log ) VALU
    ES ( ?, ?, ?, ? )
    <2005-01-06 13:14:10,268> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseSc
    heduledWorker::process> Failed to handle dispatch message invoke instance messag
    e 0c92305db480f36d:149b290:10147dc1b2e:-7fd6 ... exception Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.
    engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: Transac
    tion was rolled back: timed out; nested exception is: java.rmi.RemoteException:
    No Exception - originate from:java.lang.Exception: No Exception - originate from
    :; nested exception is:
    java.lang.Exception: No Exception - originate from:
    Best Regards

    Hi,
    There are 2 ways to work around the error that you are seeing.
    Option #1: increase the JTA timeout of the underlying application server.
    Option #2: in the bpel.xml of your process, add a "nonBlockingInvoke" property to the partnerLink representing the interaction with the long running service.
    Option #2 should also address the fact that the instance is not visible in the bpel console.
    Edwin

  • Running Simplest Web Service Client

    Hi
    I have made one Ws to open the notepad only using netbeans ide. I have made its java cleint also using netbeans IDE with WSDL URL.
    My tomcat is running at 8080 port.
    If i run the jar fiel of client in command prompt, it is opening the Notepad.
    Nowi have deployed teh Web Service in some other machine's tomcat whichis running at 4040 and one more machine 's tomcat running at 8080 port.
    I have copies the jar fiel of its cleint in somem local directory.
    Now i am running the client jar file in command prompt but it is not opening the Notepad. Even it is not showing any error in command prompt.
    Thanks in advance !

    I narrowed down the problem to the fact that from my webservices impl class, I am trying to call classes and libraries that perform tasks like database calls etc....
    I think that I am not adding these classes or libraries to the jaxws environment as I should. I have ploughed through the documentation, and I noticed the <classpath> tag under <wsimport> which I added to the build.xml file pointing to my specific classes and libraries. Doing this enabled me to build the server sucessfully. However at runtime it throws that NoClassDef exception. Can some one offer some tips on how I can get the my classes to be executed at run time...
    Thanks

Maybe you are looking for

  • How do I remove an old scanner from the File_Import sub-menu?

    I'm running Photoshop CS6 under Windows 7-32bit, on a Dell Optiplex 360 with 4GB of RAM installed. My hard drive has 96GB of free space, so system resources seem adequate. I recently replaced an old multi-function printer and a flat-bed scanner with

  • QuickTime will not uninstall

    I am using Windows 7, 64 bit. I am unable to download iTunes, I get the error message "A newer version of QuickTime is already installed. This installation cannot proceed while the newer version of QuickTIme is installed." However when I try to unins

  • Flash Player Installation

    Cannot download newest version of Flash Player on Windows 7. . . stalls out on first screen as I wait for active x bar to appear. . . I have tried deactivating virus protection but still won't proceed with download. Would appreciated help.

  • Conditional disply

    Have a drop down list of 5 items (Group1-5), one text field to enter associated no that pertains to each group, then sql report will fire up based on the input 1. how do you make this text fied to be a conditional display: ie. This text field should

  • List box example

    hi, I had made a report in which i have to display the list box option in which there will be 3 options . i had searched about it but i am not able to have examples of it which fulfill my requierment. Can anybody provide me examples of it as i had ne