Java webservice production deployment

I have installed JWSDP1.0.01 and created a webservice 'VisitantWS' using the same. I can deploy, access and consume web service alright in the JWSDP deployment environment.
Next, I am trying to create a production level environment for which, I have installed IIS and Tomcat4.0 on seperate machine with IIS redirector in place.
For deployment of my webservice in the Tomcat, I am placing the .war file(from \dist directory of JWSDP) in to the \webApps and restart IIS, Tomcat. It extracts the .war file and creates folder hirerchy in \work directory automatically. Now, when I try to check my deployment using
http://localhost:8080/VisitantWS-jaxrpc/VisitantWS
it says 'the requested resource (/VisitantWS-jaxrpc/VisitantWS) not found.
I have changed my server.xml and added the context for VisitantWS to it.
when I check the status of the service using
http:/localhost:8080/manager/list
it says
'/VisitantWS-jaxrpc:stopped:0
/running:0'
trying to reload the service gives me
'FAIL - Encountered exception java.lang.IllegalStateException: Container StandardContext[VisitantWS-jaxrpc] has not been started'
How can I deploy the webservice created using JWSDP for the production use where I dont have to use Ant (which is the part of JWSDP) for the deployment or ship JWSDP alongwith my product. Am I missing something for the deployment of the webservice on Tomcat?
Hemal

It was almost a year back and I have been distracted to other stuff but as I think of it now, having tomcat and IIS on different machines must be the problem as the webserver need the webcontainer to be on the same machine to redirect the requests. not sure but I plan to get back to it soon.

Similar Messages

  • Deployment of Java WebService with OC4J and JDeveloper

    Hi,
    I have created a sample java webservice following instructions given in one OTN tutorial (Developing, Deploying and Managing Web Services Using JDeveloper and Oracle Application Server ) at http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    We were able to create the webservice as shown in the tutorial but are facing problem while deploying it. The deployment message console in JDeveloper shows one "Deployment failed : ClassCastException".
    Some of the lines from Jdeveloper console are ::
    "Binding WebServices web-module for application JavaWebService-GetDates-WS to site default-web-site under context root JavaWebService-GetDates-context-root failed"
    I have gone through the stack trace in the OC4J console but couldnt figure out much out of it as all the culprit classes are from different jar files...Here is the Stack trace for your ref::
    06/05/05 19:07:12 WARNING: DeployerRunnable.run java.lang.ClassCastExceptionoracle.oc4j.admin.intern
    al.DeployerException: java.lang.ClassCastException
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
    e.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
    at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeRuntimeXml(WebServiceEndpoint.ja
    va:660)
    at com.evermind.server.Application.getHttpApplication(Application.java:512)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFr
    omReference(HttpSite.java:1975)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:18
    94)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    2006-05-05 19:07:12.713 WARNING java.lang.ClassCastException
    I am using J2SE1.4.2_08 version. Earlier when I used java 5 version I got an error something like "Found runtime environment 49.0 expected environment is 48.0"....so I moved over to J2SE1.4.2_08 version but now I am getting above error as shown in the stack trace.
    Looking at the success message shown in the OTN tutorial it seems that only step that failed while this deployment is Initialization of servlet : Oracle.j2ee.ws.server.JAXRPCServlet for webapplication Webservices.

    Hi, thanks for your quick help.
    Shay, I agree with you that the specific tutorial uses JDeveloper 10.1.3 and I need to use JDK 5 to run that version of JDeveloper.
    Earlier when I used JDK 5 with JDeveloper 10.1.3, I got different error saying "Found runtime environment 49.0 expected environment is 48.0".....so I moved over to J2SE1.4.2_08 version but now I am getting an error as shown in the stack trace given in the very first post to this thread.

  • Java Web Service Deployed on App server does not run

    hi,
    I created a java web service and deployed it on my Application server. When i open the enterprise manager i find my webservice there. I click on test web service and it gives me two options one with a 4443 port and other with a 7777 port. It picks up a 0.0.0.0 hostname though i deplyoed it on to a different machine.
    I choose to use the 7777 port and test the web service whrn i click invoke it give me the error
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    and when using the 4443 port it gives me the error as
    "SSL Error: unable to find valid certification path to requested target"
    please suggest how i can test a simple java webservice.
    Thanks
    Sravanti

    I think the problem is to add the custom dll files while deploying the application. Could any one please suggest how i can add custom dll file for deployment?
    Thanks
    Sravanti

  • Creating Java Webservices.

    Hi ,
    I have a Client WSDL. I have to create a dummy service java webservice uisng that wsdl.I have used axis WSDl2Java utility to create java files from the WSDL .How can I create a webservice using these java files?
    Thanks,
    Vivek

    This doesnt make much sense. Where did you get the wsdl from if you dont have a web service?
    When you develop a web service, your wsdl can be create by:
    1. when running wsgen
    2. when you deploy your web service (on Sun App Server 9.0)
    Once you have your wsdl, you can create a client that actually uses your new web service.
    I dont think you can go 'backwards' by starting with a client and a wsdl and then create your service. However, there could be some wizard/tool out there that creates a "stub" web service that has no guts.

  • Creating Java Webservice

    Hi All,
    I am trying to create a w/s in java with MDM at the backend. I have posted the query on MDM Forum. Following is the link:
    Creating Java Webservice
    Please see if you can help resolve the issue.
    Regards,
    Nitin

    Hello Nitin,
    For using MDM API into beans you need follow these steps
    1)create an external library project
    2)add all the jar files in the that project
    3)Create Publica parts for those jar files
    4)Build the project
    5)Add the reference of the extenal library project(public parts) into the Bean project
    6)Create EAR project for the corresponding bean project and deploy the EAR project
    7)Use this bean class in the webdynpro project
    8)Also add the reference of the ear project in webdynpro project
    9)Build and deploy webdynpro application after writing entire logic, and then chek the output.
    Regards,
    Shruti.

  • Problem while Consuming Java Webservice from WCF client

    Hi,
    I am trying to Consume Java Webservice from WCF client.The webservice main functionality is digital data management.The client can Query Digital data and upload digital data by calling webservice methods.Problem is when i am trying to call webmethod from WCF client its giving "Unrecognised message versions".I have no idea about how the message objects are processed at serverside.but at server side they have used JAXP for XML document parsing.
    The response content type is Multipart/related and applicatio/XOP+XML.
    Can u plz help me how to handle this situation.I have minimum knowledge in Java WS architecture.Basically i am .Net programmer.
    Can U please guide me in a proper way to resolve the problem.

    Hi Abinash,
    I have the same problem. Have you solve that problem?
    I am using a java program to call a webservice too. And I have generated the client proxy definition for Stand alone proxy using NWDS. When I call the method of the webservice I am getting the correct result but along with the result I am getting one error and one warning message in the output.
    The java code to call the webservice is as follows.
    MIDadosPessoaisSyncService service = new MIDadosPessoaisSyncServiceImpl();
    MIDadosPessoaisSync port = service.getLogicalPort("MIDadosPessoaisSyncPort");
    port._setProperty("javax.xml.rpc.security.auth.username","xpto");
    port._setProperty("javax.xml.rpc.security.auth.password","xpto");
    String out = port.MIDadosPessoaisSync("xpto", "xpto");
    System.out.println(out);
    The result I am getting is :
    Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    Error Message is :com/sap/guid/GUIDGeneratorFactory
    <b>The result of the WS is correct!!!</b>
    The Java project does not have any warning. But the stand alone proxy project has following warnings associated with it.
    This method has a constructor name     MIDadosPessoaisSync.java     
    The import javax.xml.rpc.holders is never used     MIDadosPessoaisSyncBindingStub.java     
    The import javax.xml.rpc.encoding is never used     MIDadosPessoaisSyncBindingStub.java     
    The constructor BaseRuntimeException(ResourceAccessor, String, Throwable) is deprecated     MIDadosPessoaisSyncBindingStub.java
    It is very similar with your problem, could you help me?
    Thanks
    Gustavo Freitas

  • Formating the response of Java webservice to table structure in webdynpro

    Hi All,
    I am stuck at a point where I have  a Java Webservice resulting an ArrayList Response.
    My webdynpro will have to populate the ArrayList response into a table.
    Below is the piece of code am using to execute my webservice.
    CODE :
    JavajdbcModel md = new JavajdbcModel();
        Request_Display reqDisp= new Request_Display(md);
        try
        reqDisp.execute();
        wdComponentAPI.getMessageManager().reportSuccess("Str: "+reqDisp.getResponse());
    RESULT :
    <modelObject class="Response_Display"><target roleName="DisplayResponse"><modelObject class="DisplayResponse"><attribute name="Response" value="[[i01111, USSS, DSGTechTwo, DEF], [i012345, USSS, DSGTechOne, ABC], [i067890, USSS, DSGTechTwo, DEF], [i07777, USSS, DSG, ggg], [i08888, cccc, vvvv, bbbb], [io3333, USSS, DSGTechOne, abc]]"/></modelObject></target></modelObject>
    The required output are the values that are with the blue font above.
    I have tried with methods like :
    getAttributeValue, getResult - but are of not much help.
    Could you please help me out in this.
    Thanks & Regards,
    Suyukti. B N.

    Dear Suyukti,
    Since your web service returns an arraylist,
    you need to retreive the response into an arraylist. Then you can you this arraylist to populate the node for the table as required.
    Your code will be something like
    ArrayList al = (ArrayList)reqDisp.getResponse();
    Now that you have the response, then use the get function of the arraylist to set the context.
    al.get(index);
    This function returns  java.lang.Object, so you need to to cast into the required type.
    e.g. String str = (String) al.get(0);
    Hope that works.
    Regards,
    Mayuresh.
    PS: xxxxxxxxxxxxxxxxxxxxxxxxxx
    Edited by: Armin Reichert on Jan 1, 2008 3:49 PM

  • Problem using VB Client with a JAVA Webservice

    Hi people!
    I'm using JDeveloper (9.0.3) to create a JAVA Webservice on OC4J container. I followed tutorial of Oracle and I got to execute my webservice, including I can invoke my methods by HTTP using HTML forms.
    I need to invoke my methods using a VB Client with MIcrosoft SOAP ToolKit. My VB code is:
    Function autenticar(login As String, senha As String)
    Dim ObjWS As New MSSOAPLib30.SoapClient30
    Dim retorno As Variant
    Call ObjWS.MSSoapInit("http://10.71.200.40:8888/iSimp-Web-Root/br.gov.anp.isimp.controleVersao.ControleVersaoEJB?WSDL")
    retorno = ObjWS.autentica(login, senha)
    autenticar = retorno
    End Function
    My webservice publish a method called autentica that receives two parameters (a login and a password) and authenticates to obtain access to my system.
    When I try to execute this function, I got this message error:
    No deserializer found to deserialize a ":login" using encoding style "http://schemas.xmlsoap.org/soap/encoding/". [java.lang.illegalArgumentException]
    Anyone knows what is this error?

    If you could post what solved your problem that would be useful for others that run into the same issue. Thanks if possible!
    Mike.

  • Using Java Webservices provided by xRPM 4.0 in PPM 5.0

    Hi,
    We have developed some custom WD ABAP applications in PPM 4.5 which were using Java webservices provided by xRPM 4.0 to get the UI context.
    The details are provided in the document
    https://websmp109.sap-ag.de/~sapidb/012006153200000315412008E/How_to_xRPM_custom_iView.pdf
    We have upgraded to PPM 5.0 and the custom webDynpro application is not able to fetch the UI context and get the portfolio GUID. I have verified that the RFC destination and Logical port required to call Java webservices is maintained as mentioned in the above document.
    Are these SAP standard Java webservices available for use in PPM 5.0 ? Please let me know if we need to change the custom code to fetch the UI context in PPM 5.0
    Thanks,
    Yomesh

    Thanks Amit for the confirmation. I am following SAP Note 0001399319 which mentions about how to develop for custom WD ABAP applications in PPM 5.0.
    The example WDA component mentioned in the note is /RPM/CUSTOM_COMPONENT. I am developed a custom WD ABAP application in lines with the SAP note and still not able to get the GUID in the context.
    The code written in WDDOINIT of these applications is as below,
      instantiate session state class
        wd_this->mr_session_state = cl_inm_session_state=>get_instance( ).
    Obtain current context from session state.
        CALL METHOD wd_this->mr_session_state->get_current_context
          IMPORTING
            es_context = wd_this->ms_context.
    I am getting null in ms_context.
    Please let me know if you have tried to implement an custom WDA application in PPM 5.0. Not sure what am I missing in the above scenario.
    Thanks,
    Yomesh

  • When i click on the Firefox icon I get an error message, C:\Program Files\Java\jre6\lib\deploy\jqs\ff\..\..\..\..\bin\jqsnotify\.exe cannot be found. What is it? and how do i fix it? in English

    When i click on the icon to open Firefox an error message box appears with the following message, C:\Program Files\Java\jre6\lib\deploy\jqs\ff\..\..\..\..\bin\jqsnotify\.exe cannot be found. It then advises me to use the Search function, but the search function says it is unavailable.
    What is it? and how do I fix it? in English

    See:
    http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0

  • Problems using a VB Client to access a JAVA Webservice

    Hi people!
    I'm using JDeveloper (9.0.3) to create a JAVA Webservice on OC4J container. I followed tutorial of Oracle and I got to execute my webservice, including I can invoke my methods by HTTP using HTML forms.
    I need to invoke my methods using a VB Client with MIcrosoft SOAP ToolKit. My VB code is:
    Function autenticar(login As String, senha As String)
        Dim ObjWS As New MSSOAPLib30.SoapClient30
        Dim retorno As Variant
        Call ObjWS.MSSoapInit("http://10.71.200.40:8888/iSimp-Web-Root/br.gov.anp.isimp.controleVersao.ControleVersaoEJB?WSDL")
        retorno = ObjWS.autentica(login, senha)
        autenticar = retorno
    End FunctionMy webservice publish a method called autentica that receives two parameters (a login and a password) and authenticates to obtain access to my system.
    When I try to execute this function, I got this message error:
    No deserializer found to deserialize a ":login" using encoding style "http://schemas.xmlsoap.org/soap/encoding/". [java.lang.illegalArgumentException]Anyone knows what is this error?

    Thanks guys! I'm already solve my problem.

  • Production deployment - Execution agent , Port connection

    Hello Friends,
    We are new to ODI. As part of production deployment, we have 1 master rep in PROD env and 1 Work rep per env[Dev & QA]. Like to clarify if the execution port defined (Ex: 20912) be opened between the Server were ODI agent is installed and repository DB Server? (OR) is it also required to open port 20912 to be accessed from were ODI client is installed as well?? in case we plan to use another production agent install as scheduler agent to test large volumn data loads.
    Here's our setup:
    ODI client install -> Win2003 Server
    ODI Agent -> Unix - Solaris 10
    Master Rep -> SQL 2005 - Win2003 Server
    Thank you.

    It should be open where you have scheduled the agent (in your case Unix Solaris 10)

  • How to use Delphi Client in Java WEBSERVICE

    I am building a Webservice Application. In client side I use Delphi to import WSDL from a Java Webservice Server ( literal WSDL ). By using WSDL Importer Control I successfully imported the WSDL file but when I called the impoted method the system returned an error :
    "Project sendEmail.exe raise exception class ERemotableException with message ' Unable to find a matching Operation for this remote invocation <SOAP-ENV: send xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> </SOAP-ENV:send>.Please check your Operation Name.'
    I think when i call send method in Client side the request is sent to Webservice Server but in server side ( build in Java ) that method doesn't match with the original method ( although the method in client side is imported from Webservice Server )
    ( When I use Delphi client to invoke methods from Delphi Webservice Server ( with rpc WSDL ) the result is OK and Java client also sucessfully invoke that method from Java Webservice )
    Can you show me how i resolve this problem. Thanks

    Hi Robin,
    At some point, you can expect that the Web services frameworks will be implementing some of the plumbing related to WS-* for you. For example, you can rely on the framework to deal with WS-sec for you with the current Developer Preview of OC4J. For WS-Adressing specifically, you have to handle this in the application layer today, and there is very little the framework can do for you, other than converting the WS-Addressing SOAP header into some java object model for you. The business logic related to the use of the ws-addressing headers has to be implemented at the application level, with some handler. The same applies today for any JAX-RPC based Web services framework, including Axis. Now, if you are using some 'advance' framework like BPEL PM, they can do a lot of heavy lifting for you, under the cover.
    Hope this helps,
    Eric

  • Non Java Webservice client Authentication

    I see in the Weblogic docs many examples of Java webservice clients. Including
    one that passes a user id and password through the getXXXPort(userid, password)
    call for authenticating the user at runtime. My question is, can a non Java webservice
    client authenticate itself in somewhat the same manor? A non Java client wouldn't
    have the client jar file available containing the stubs and all.
    If someone has a code snippet they could send me it would be most appreciated.
    Thanks,
    Craig Lindley

    Hi Craig,
    An partial example using .NET is attached; in this environment you need
    to use their NetworkCredential class.
    Hope this helps,
    Bruce
    craig lindley wrote:
    >
    I see in the Weblogic docs many examples of Java webservice clients. Including
    one that passes a user id and password through the getXXXPort(userid, password)
    call for authenticating the user at runtime. My question is, can a non Java webservice
    client authenticate itself in somewhat the same manor? A non Java client wouldn't
    have the client jar file available containing the stubs and all.
    If someone has a code snippet they could send me it would be most appreciated.
    Thanks,
    Craig Lindleyusing System;
    using System.Net;
    namespace SecurityBasicClient
    class AuthClient
    [STAThread]
    static void Main(string[] args)
    SoapInteropBaseService ws = new SoapInteropBaseService();
    ws.Url = "http://webservice.bea.com:7001/base/SoapInteropBaseService";
    Console.Write("User:");
    string strUser = Console.ReadLine();
    Console.Write("Password:");
    string strPassword = Console.ReadLine();
    ICredentials credentials = new NetworkCredential(strUser,strPassword);
    try
    ws.Credentials = credentials;
    Console.WriteLine(ws.echoString("Hello World"));
    catch (Exception err)
    Console.WriteLine(err.Message);
    finally
    Console.ReadLine();

  • Cloud service restored to the last production deployment

    I've update production deployment yesterday morning then I've made changes to service files using remote connection
    add and update files and everything was OK.
    today morning all the changes I've done after deployment was undone and customers use the old version and this cost us hundreds of thousand of pounds
    i need to know what's happen nothing appeared in operations log

    Hi,
    >> I've made changes to service files using remote connection
    As far as I know this is the reason, we could use remote connection to do some development or troubleshoot without redeploy our application, but I don't suggest you use it to update application in product, because the
    cloud service will recover if the role needs to be recycled for whatever reason. I suggest you redeploy the application after make some changes
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Hide button in Embedded View

    Hello All, I have 2 webdynpro applications. In mt first webdynpro application I have a view in that I have used View container UI element and in that I have embedded my 2nd webdynpro application. This view contains the button called "back" to 1st app

  • Will Adobe Reader (iOS) be able to handle acrobat file with video?

    I have created power point slides with embedded video.   I used Acrobat to make a pdf version of the power point slides.  All of the Action Buttons and Video displays perfectly in Windows. I am interested in have this pdf file be display on an iPad (

  • RFC(Bapi) to Webservice using BPM

    Hi, Can anybody explain me how to do RFC TO Webservice (whole scenario is synchronous) using BPM.My scenario is I have a sender RFC where I need to call two webservices in sequence.Appreciate any help guys. Thanks Points will be awarded

  • Iphone4 help.

    my iphone 4 is stuck on a black screen with the loading sign in the middle. I cannot restart my phone because my lock button is broken. when i try to connect my phone to itunes it asks for my passcode which i am unable to enter because i cannot get o

  • Having trouble updating Creative Cloud (Error Code: 85)

    Having trouble updating Creative Cloud (Error Code: 85) Installation keeps stopping at 43%