JBO-33001 bc4j.xcfg CLASSPATH problem in deployed java web service

Hi
I have deployed a web service that uses a simple java class to update some BC4J EO's.
I have included the deployed jar files in the OC4J Classpath.
I have also deployed the web service to the application server.
I then call the web service from BPEL.
During the web service call, I'm getting the following exception:
exception on JaxRpc invoke:
start fault message:
oracle.jbo.ConfigException: JBO-33001: Cannot find the configuration file /cb/test/peoplebc/common/bc4j.xcfg in the classpath at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:367)
I've checked that the file is deployed in the MiddleTier jar file, so not sure what to do.
Any ideas most appreciated.
Cheers
Chris

Hi,
This may sound a bit stupid, but as a quick and dirty solution i just copied the common directory with the bc4j.xcfg file where it is looking for it. This makes it at least work. Any updates to the xcfg file done will of course not be reflected.
Regards, G

Similar Messages

  • JBO:33001 bc4j.xcfg file not found in class path

    Hi,
    I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
    But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
    I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
    1. I have this file in my jar file.
    2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
    Still no solution.
    Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
    Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
    I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
    Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
    Waiting for a reply from Jdev team very much...
    ( I just posted in the other thread which is pretty old, dated backto May 2001, which was relevant to this error. Just to make sure it is noticed, I am posting it seperately too)
    Thanks
    Hari(2/3/02)

    Hi All,
    For those who are following this thread, I got a solution for this error with the help of Jdev Team.
    This solution may work, if you have deployed your application in Tomcat4.0.1. This is the environment in which I work and tested.
    As you may be aware, Tomcat ignores value in CLASSPATH variable.
    To see any files that are existing or newly deployed, it has it own way of detecting it.
    Addition information on Tomcat working, you can follow this link,
    http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
    Coming to point, Tomcat has got five classloaders and each classloader invoked, looks in their related directories for files in following order.
    1. /WEB-INF/classes of your web-application
    2. /WEB-INF/lib/*.jar of your web application
    3. BootStrap classes of your JVM (Tomcat's $JAVA_HOME/jre/lib/ext)
    4. System class loader classes($CATALINA_HOME/bin/bootstrap.jar,CATALINA_HOME/lib/tools.jar)
    5. $CATALINA_HOME/common/classes
    6. $CATALINA_HOME/common/lib/*.jar
    7. $CATALINA_HOME//classes
    8. $CATALINA_HOME/lib/*.jar
    So All your individual application related files should be deployed in your application's WEB-INF/classes or WEB-INF/lib directory accordingly.
    If your application files are unpacked, they should be deployed or copied under WEB-INF/classes directory
    if the files are within a jar, they should be under WEB-INF/lib directory.
    If your Jar-files contains bc4j components, then those jar files should be deployed under WEB-INF/lib directory. Also,do the next step to copy all relavant BC4J runtime libraries under lib directory.
    IMPORTANT: Please remember to copy and paste all the required BC4j runtime libraries in the Same WEB-INF/lib directory along with your application jar files. This is the real reason which can solve this JBO:33001 to disappear. It worked for me.
    To configure your directory for tag-lib uri's, use web.xml to set the taglib-uri attribute.
    Put your web.xml and DataTags.tld in the WEB-INF directory.
    Your simple web.xml may look like as follows.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <taglib>
              <taglib-uri>
                   /webapp/DataTags.tld
              </taglib-uri>
              <taglib-location>
                   /WEB-INF/DataTags.tld
              </taglib-location>
         </taglib>
    </web-app>
    You may then modify this web.xml to suit further requirements of your application.
    Remember to stop and restart the Tomcat Server (service) by using shutdown and startup scripts after updating any jar files/class files/ JSP or source files deployed in Tomcat.
    Sometimes, only this helps even though your context's reloadable attribute is set to true in Tomcat Server's server.xml file.
    Hope this above information helps you to solve this error in Tomcat environment. My Sincere thanks once again to Juan and Jdev team for their help and efforts to solve this problem.
    Thanks
    Hari

  • JBO-33001 bc4j.xcfg WHAT A FRUSTRATION !!

    I have been browsing this site in order to find some solution this ever pending problem.
    I am using the JDEV 9.0.2.827 on linux with J2SDK 1.3.1.
    I have created one project for BC4J and one project for JSP client.
    Both of them using the wizards.
    I have compiled and build the BC4J project.
    The Client JSP has the lib reference to the BC4J project correctly, also the deployment has it checked in the "WEB-INF/lib"
    When I run the Client JSP projekt from the IDE using internal OC4J got the error:
    "Error Message: JBO-33001: Cannot find the configuration file /mypackage/common/ bc4j.xcfg in the classpath"
    Could somebody Pleazzz to give some hint how to do it !!!
    I do not understand why Oracle makes such a product that seems to miss logical automation and the end user has to hassel with something which should be REALLY automated or EXPLAINED in the documentation?
    An other example is the HOWTO deploy BC4J to JBOSS documentation. If I do the WAR deployment as suggested in the HOWTO got the same error. Is this the way how ORACLE understands the concept of quality?
    Bestr regards and thanx in advance...

    When you get this error, it means that your BC4J application classes are not accessible to your client project. Your only option is to make sure that the JSP client runtime has the BC4J application in it's classpath. Here are some observations:
    1. If your client runs fine within JDeveloper, your deployment environment is not correct and you need to make sure that your BC4J application classes can be accessed by your client. This may vary depending on which web or application server you are running on.
    2. If your application doesn't run inside of JDeveloper, you have a problem with your project configuration. Here is a simple way to fix this:
    - look at your BC4J project and copy the output path for your classes. Let's say it 'c:\jdev\myclasses1'
    - create a Jdeveloper library definition that includes 'c:\jdev\myclasses1' and add it to your client project. this will make the middle-tier classes available to your client.
    - when you create a WAR deployment profile for your client, make sure the library you created is also part of the deployment set of classes.

  • JBO-33001 bc4j.xcfg missing with Jdev 9.0.5.1 embedded OC4J

    I've got an application that I've been trying to migrate from Jdev 10g Preview (9.0.5) to Production (9.0.5.1) for a week now. The steps I've had to follow so far are:
    1) Install Jdev 9.0.5.1
    2) Run it and allow all workspaces/settings to be migrated
    3) Shut down and rename the system9.0.5.1.1605 to something else.
    4) Restart and say No to migrate
    5) Open my application workspaces again.
    This procedure seemed to get me correct library settings working with the correct XML schemas. However, now I can't test my BC4J/UIX application. I get the following message when I right-click on a DataAction and choose Run:
    500 Internal Server Error
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /com/paslists/model/common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:344)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:165)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at oracle.adf.model.servlet.ADFBindingFilter.initializeBindingContext(ADFBindingFilter.java:328)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    This is happening in the embedded OC4J. How do I fix this?

    I've managed to resolve this error. Somehow, my entire Model project got mis-represented in my ViewController. The package name was "model" in my Model project, yet somehow all of the Binding Contexts (UImodel.xml) files contains "com_paslists_model_..." for the name of my Application Module. To resolve the error, I first had to fix the references to my Application Module in the DataBindings.cpx file. Then, I had to exit Jdev completely and edit the UImodel.xml files by hand, replacing the invalid reference to my DataControl using the correct entry in the DataBindings.cpx file.
    Now, everything seems to function correctly.
    I don't know how this got so messed up, unless it was an error with migration.

  • HELP!: JBO-33001 bc4j.xcfg not found against oc4j 9.0.3

    I'm using JDev 9.0.2.
    Make BC4J project and BC4J JSP application.
    Then I deployed to remote OC4J server.
    BC4J JSP works on remote OC4J 9.0.2 but fails on remote OC4J 9.0.3
    by JBO-33001. Why??
    Of course, I set up the BC4J runtime on both version of OC4J, so
    I believe the same configuration has done for both OC4J server.
    Does anyone can deploy and execute 9.0.2's BC4J app on OC4J 9.0.3???

    I have found the solution...that worked for me anyway.
    When configuring a stand-alone OC4J 9.0.3 to work with BC4J (using %JDEV_HOME%\BC4J\bin\bc4j2oc4j.bat), JDEV_HOME must be pointing to a JDeveloper 9.0.3 installation.
    Before doing this however, I undid some of my earlier work:
    - undeployed the apps I deployed to the stand-alone OC4J
    - pointed JDEV_HOME to my 9.0.2 installation and ran: %JDEV_HOME%\BC4J\bin\bc4j2oc4j delete
    Now you can properly configure OC4J 9.0.3 by:
    - point JDEV_HOME to a 9.0.3 install (simply unzip it somewhere)
    - run: %JDEV_HOME%\BC4J\bin\bc4j2oc4j install
    After that, deployments of BC4J JSP pages (to my newly reconfigured stand-alone OC4J 9.0.3) ran and connected to my application module just fine, even though I developed and deployed them using JDEV 9.0.2
    I wish there had been a new set of instructions put out for configuring OC4J 9.0.3.

  • Problem in deploying a web service

    hi all,
    i am creating java files out of a wsdl and tring to deploy them. but there is some problem because when i try to deploy the java files it throws following exception:
    E:\eclipse\workspace\AvailRqOTAToTH\com\tourico\webservices>java org.apache.axis
    .client.AdminClient deploy.wsdd
    Processing file deploy.wsdd
    Exception: AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.reflect.InvocationTargetException
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTarg
    etException
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
    .java:221)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
    java:128)
    at org.apache.axis.encoding.DeserializationContext.endElement(Deserializ
    ationContext.java:1087)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endEleme
    nt(AbstractSAXParser.java:585)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
    EndElement(XMLNSDocumentScannerImpl.java:560)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1555)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
    l.scanDocument(XMLDocumentFragmentScannerImpl.java:341)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:828)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
    ML11Configuration.java:758)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
    java:148)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab
    stractSAXParser.java:1178)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(Deserialization
    Context.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
    tandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
    at org.apache.axis.client.Call.invoke(Call.java:2748)
    at org.apache.axis.client.Call.invoke(Call.java:1784)
    at org.apache.axis.client.AdminClient.process(AdminClient.java:439)
    at org.apache.axis.client.AdminClient.process(AdminClient.java:404)
    at org.apache.axis.client.AdminClient.process(AdminClient.java:410)
    at org.apache.axis.client.AdminClient.process(AdminClient.java:320)
    at org.apache.axis.client.AdminClient.main(AdminClient.java:463)
    {http://xml.apache.org/axis/}hostname:ff-930b52be034f
    here is the snippet of the wsdl:
    <wsdl:portType name="HotelsServiceSoap">
    <wsdl:operation name="BookHotel">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Create reservation(s) for selected rooms. Separate reservation created for each room</documentation>
    <wsdl:input message="tns:BookHotelSoapIn"/>
    <wsdl:output message="tns:BookHotelSoapOut"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="HotelsServiceSoap" type="tns:HotelsServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <wsdl:operation name="BookHotel">
    <soap:operation soapAction="http://tourico.com/webservices/BookHotel" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    <soap:header message="tns:BookHotelLoginHeader" part="LoginHeader" use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="HotelsService">
    <wsdl:port name="HotelsServiceSoap" binding="tns:HotelsServiceSoap">
    <soap:address location="http://localhost:7070/axis/services/HotelsServiceSoap"/>
    </wsdl:port>
    </wsdl:service>
    where as i am using one more web service and able to deploy the java file of this web successfully.
    the snippet of 2nd web service is:
    <wsdl:portType name="TouricoRequest">
    <wsdl:operation name="BookHotelRq">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/"> middleware method for "book
    hotel" request from OTA to TH conversion </documentation>
    <wsdl:input message="ws:BookHotelRqSoapIn"/>
    <wsdl:output message="ws:BookHotelRqSoapOut"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="TouricoRequestSoapBinding" type="ws:TouricoRequest">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <wsdl:operation name="BookHotelRq">
    <soap:operation soapAction="" style="rpc"/>
    <wsdl:input>
    <soap:body use="encoded" encodingStyle="soap-enc"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="encoded" encodingStyle="soap-enc"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="TouricoHotelRequestServiceMiddleware">
    <wsdl:port name="TouricoRequest" binding="ws:TouricoRequestSoapBinding">
    <soap:address location="http://localhost:7070/axis/services/TouricoRequest"/>
    </wsdl:port>
    </wsdl:service>
    i am using tomcat 5.0.30 and axis 1.1 RC2
    please help in solving the problem.
    thanx
    sandeep

    Try to include port number in the command line after org.apache.axis.client.AdminClient
    like this
    % java org.apache.axis.client.AdminClient -p 80 deploy.wsdd
    Please try this amd let me know. I know you should have solved it by now, but sitll to make sure I am posting htis message
    Thanks
    Meena

  • Problem using deployed Axis web services

    Dear all,
    I am currently trying to get my first web services up and running on Tomcat 5. I create a simple Java class to return a String:
    public class SayHello2
        public String hello(String in)
            return ("Hello, " + in);
    }From this class I created the WSDL with Java2Wsdl. I created the deployment descriptor using Wsdl2Java and deployed the whole thing using the Axis AdminClient. Finally, I compiled the resulting classes from step 2 and copied them to the directory that corresponds to the package name.
    The web service is listed together with the method in the list provided by Axis. However, I can not access the method, neither entering the direct URL (http://localhost/WSTest/services/SayHello2?in=bla), nor using the stub classes generated by Axis, nor using a org.apache.axis.client.Call. I am quite lost. Does anyone have any ideas what I could check? I've pasted the WSDL below, just in case there's any hint in there. (I can access this wsdl alright with http://localhost/WSTest/services/SayHello2?wsdl).
    Cheers,
    N.
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="urn:testPackage" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:testPackage" xmlns:intf="urn:testPackage" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <!--WSDL created by Apache Axis version: 1.2.1
    Built on Jun 14, 2005 (09:15:57 EDT)-->
       <wsdl:message name="helloResponse">
          <wsdl:part name="helloReturn" type="soapenc:string"/>
       </wsdl:message>
       <wsdl:message name="helloRequest">
          <wsdl:part name="in" type="soapenc:string"/>
       </wsdl:message>
       <wsdl:portType name="SayHello2">
          <wsdl:operation name="hello" parameterOrder="in">
             <wsdl:input message="impl:helloRequest" name="helloRequest"/>
             <wsdl:output message="impl:helloResponse" name="helloResponse"/>
          </wsdl:operation>
       </wsdl:portType>
       <wsdl:binding name="SayHello2SoapBinding" type="impl:SayHello2">
          <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
          <wsdl:operation name="hello">
             <wsdlsoap:operation soapAction=""/>
             <wsdl:input name="helloRequest">
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:testPackage" use="encoded"/>
             </wsdl:input>
             <wsdl:output name="helloResponse">
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:testPackage" use="encoded"/>
             </wsdl:output>
          </wsdl:operation>
       </wsdl:binding>
       <wsdl:service name="SayHello2Service">
          <wsdl:port binding="impl:SayHello2SoapBinding" name="SayHello2">
             <wsdlsoap:address location="http://localhost/WSTest/services/SayHello2"/>
          </wsdl:port>
       </wsdl:service>
    </wsdl:definitions>

    Thanks for the reply!
    The odd thing is that no exception is thrown at all. All that happens is that I get a null value back when I call the method sayHello (indepent from the way in which I call it, whether using URL access or the client stub). When I deploy the same class as a .jws, called with http://localhost/WSTest/SayHello.jws?method=sayHello&in0=bla, everything works fine. Response:
    <soapenv:Envelope>
      <soapenv:Body>
       <sayHelloResponse    soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <sayHelloReturn xsi:type="xsd:string">Hello, bla</sayHelloReturn>
    </sayHelloResponse>
    </soapenv:Body>
    </soapenv:Envelope>When I call the deployed web servce with http://localhost/WSTest/services/SayHello2?method=sayHello&in0=bla, I get the null value back:
    <soapenv:Envelope>
    <soapenv:Body>
       <sayHelloResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <sayHelloReturn xsi:type="soapenc:string" xsi:nil="true"/>
    </sayHelloResponse>
    </soapenv:Body>
    </soapenv:Envelope>I don't have the slightest clue what the problem could and really need to get this web service thingy going. I have already spent an entire week on this. Any help is greatly appreciated.
    Cheers,
    N.

  • Exception when deploying java web-service to PI 7.1 via JSPM

    Dear Friends,
    While uploading a self created web-service to PI 7.1 via java support package manager, we get an exception during the deployment process - which says: "WebServices Common deployment exception. The reason is: Unable to generate complex types". The JSPM main log for the deployment is attached to this message.
    The complex type that is used is a Java Class with one data member of type String.
    Thanks in advance,
    Udi Dekel.

    Hi Udi,
    There could be a thousand reasons to this problem. Please go through the checklist , one of them is bound to work.
    1) Verify whether the process table on SAP J2EE server and it says that SDM is running.
    2) You have to enter the SDM host as the name of your J2EE server with the port. Go to:
    Window -> Preferences -> SAP J2EE engine -> Here Enter the values of Message Server Host and Message Server Port.
    3) For some reason the SDM wasn't started by the MMC. Since I was not able to start the SDM via MMC, I started it manually via DOS prompt "StartServer". After that the deployment of the application worked fine.
    4) Try updating the hosts file:
    C:\<WINDOWS-version>\system32\drivers\etc
    Append the following line:
    <localhost IP> name of the localhost.
    e.g.10.590.789.10 remotehost
    Reboot your PC, be sure all threads of the J2EE Engine are running and try to deploy again.
    5) You should use port 39xx instead of 36xx (where xx - SCS instance number).
    6)Please check message server settings on
    visual admin tool:server->kernel->cluster manager
    and check ms.host and ms.port values from the table. If you do your J2ee settings according to these values it will probably work fine.
    The reason why you are getting SDM error is ,at the previous versions there was settings for SDM in preferences and you had to set the port number for SDM ( which was 50018 + 100 * <instance number> ). There is no specific settings for SDM in preferences anymore.
    Regards
    joel
    Edited by: joel trinidade on Mar 26, 2009 2:38 PM
    Edited by: joel trinidade on Mar 26, 2009 2:40 PM

  • Problem in creating Java Web Service

    hi,
    i am trying to create a simple java webservice through eclipse and tomcat.
    this is my code: -----
    package com.test;
    public class addfunc {
         static StringBuffer sb = null;
         static String n3 = null;
         * @param args
         public void confunc(String n1, String n2, StringBuffer sb) {
              n3 = n1 + "~" + n2;
              sb = new StringBuffer(n3);
              System.out.println("inside confunc:" + sb);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String n1 = "test1";
              String n2 = "test2";
              addfunc c = new addfunc();
              c.confunc(n1, n2, sb);
              sb = new StringBuffer(n3);
              System.out.println("before split : " + sb);
    but i am not able to proceed through....while trying to create a web service i am getting the following error:---------------------------
    The service class "com.test.addfunc" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.
    The method "confunc" on the service class "com.test.addfunc" uses a data type, "java.lang.StringBuffer", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result.
    Kindly suggest me the steps......
    thanks!

    hi,
    i am trying to create a simple java webservice through eclipse and tomcat.
    this is my code: -----
    package com.test;
    public class addfunc {
         static StringBuffer sb = null;
         static String n3 = null;
         * @param args
         public void confunc(String n1, String n2, StringBuffer sb) {
              n3 = n1 + "~" + n2;
              sb = new StringBuffer(n3);
              System.out.println("inside confunc:" + sb);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String n1 = "test1";
              String n2 = "test2";
              addfunc c = new addfunc();
              c.confunc(n1, n2, sb);
              sb = new StringBuffer(n3);
              System.out.println("before split : " + sb);
    but i am not able to proceed through....while trying to create a web service i am getting the following error:---------------------------
    The service class "com.test.addfunc" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.
    The method "confunc" on the service class "com.test.addfunc" uses a data type, "java.lang.StringBuffer", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result.
    Kindly suggest me the steps......
    thanks!

  • Problem While Deploying Java Web Application(Struts,Hiber) on NetWeaver 7.3

    Hi
    Fortunately i had a requirement to deploy my project JAVA (Struts, Hiber, DOJO)web application build as war file using Eclipse 3.4 on SAP Net Weaver 7.3
    Its showing in the Deployed Components List of NetWeaver ...
    When i tried to open the home page i found an exception ...
    The following is the log file content ... Hope its something related to hibernate ...
    >deploy s:\usr\sap\trans\EPS\in\LMSDemo.war on_deploy_error=stop
    Converting s:\usr\sap\trans\EPS\in\LMSDemo.war to sda
    s:\usr\sap\trans\EPS\in\LMSDemo.war has been successfully converted to sda
    Deploy settings:
    life_cycle=bulk
    on_deploy_error=stop
    on_prerequisite_error=stop
    version_rule=lower
    workflow=normal
    If there is an offline deployment, Telnet connection to host may be lost, but th
    e result can be seen using get_result command
    Processing deployment operation, wait...
    ===== PROGRESS START =====
    Deploying JavaEE_LMSDemo (sda) ...
    Deployment of JavaEE_LMSDemo (sda) finished.
    ===== PROGRESS END =====
    ===== DEPLOY RESULT =====
    sdu id: JavaEE_LMSDemo
    sdu file path: [S:\usr\sap\N73\J10\j2ee\cluster\server0\temp\tcbldeploy_contro
    ller\archives\31\263890545832850\SDA\LMSDemo.war]
    version status: NEW
    deployment status: Warning
    description: [
    1. Warning exception has been returned while the [] was starting. Warnings:[
    Warning occurred on server 102466650 during startApp of JavaEE/LMSDemo : com.sap
    .ASJ.web.000607 (Failed in component: JavaEE/LMSDemo, ) Initialization of servle
    t action failed. Check init() method of servlet. Error is: [javax.servlet.Unav
    ailableException: org/slf4j/LoggerFactory]
    ===== END DEPLOY RESULT =====
    ===== Summary - Deploy Result - Start =====
    Type | Status : Count
    > SCA(s)
    > SDA(s)
    - Warning : [1]
    Type | Status : Id
    > SCA(s)
    > SDA(s)
    - Warning : JavaEE_LMSDemo,
    ===== Summary - Deploy Result - End =====
    >
    Does anyone knows this ..

    In your deploy message it says that it can't initialize your servlet because it is missing a java class from the logging framework that is used by hibernate. It might also be possible that that logging framework ([SL4J|http://www.slf4j.org/]) is configured to use a logger that is not available in your Netweaver 7.3 installation. Maybe check the documentation of sl4j for details. There is also a [document|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/bf0d57db-0c01-0010-6fa3-83503981eed4] about Hibernate on Netweaver but that was back when Hibernate did not use sl4j. Probably you just need to add the sl4j library to your libs.

  • Problem installing Download Java Web Services Developer Pack on ubuntu

    I downloaded the .sh file, but when I try to run it, I get...
    For help, type 'jwsdp-2_0-unix.sh -help'
    Using /var/tmp as temporary directory...
    Searching for Java(TM) 2 Platform, Standard Edition...
    tail: cannot open `+368' for reading: No such file or directory
    Initializing InstallShield Wizard...
    Exception in thread "main" java.lang.NoClassDefFoundError: JWSDP
    Caused by: java.lang.ClassNotFoundException: JWSDP
         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
    Could not find the main class: JWSDP. Program will exit.I went through the troubleshooting guides, but none of the solutions worked...I'm also running an amd machine, which I don't think is supported...that may be part of the problem.
    Is there a particular directory you should run this from?
    bp

    Hi Guys,
    Please try the following command, I tried the same it is working fine on Ubuntu 8.10.
    export POSIX2VERSION=199209
    ./jwsdp-2_0-unix.sh
    I hope you will get it. thanks.
    Regards,
    Raju

  • Deploying a web services on Oracle Application Server

    Hi,
    it is possible to deploy a web services generated by axis on Oracle Application server ? and if it is how ?
    Thanks,

    Hello again.
    Thx for the reply.
    I have all specfic Libraries in my ear file, but i don't get the problem solved.
    I can see the example Web Services from axis but not my own (which should be generated from my class files)
    Here is the build file I use, perhaps someone find what I do wrong or what I forgett:
    Regards
    <project name="readySAPOC4J" default="" basedir=".">
    <!-- ********** PROJEKT VARIABLEN ********** -->
    <!-- set global properties for this build -->
    <property file="build.properties"/>
    <!-- ********** CLASSPATH ********** -->
         <path id="project.classpath">
              <pathelement location="${build}"/>
                   <fileset dir="${lib}">
                        <include name="activation.jar"/>
                        <include name="ant.jar"/>
              <include name="axis-ant.jar"/>
                   <include name="axis.jar"/>
                   <include name="commons-discovery.jar"/>
                   <include name="commons-logging.jar"/>
                   <include name="jaxrpc.jar"/>
                   <include name="log4j.jar"/>
                   <include name="mail.jar"/>
                   <include name="saaj.jar"/>
                   <include name="sapjco.jar"/>
                   <include name="tools.jar"/>
                        <include name="wsdl4j.jar"/>
                   <include name="ant.jar"/>
                   </fileset>
         </path>
    <!-- ********** TASKDEFINITION ********** -->
         <taskdef name="axis-admin" classname="org.apache.axis.tools.ant.axis.AdminClientTask">
              <classpath refid="project.classpath"/>
         </taskdef>
    <!-- ********** INITIALIZATION TARGETS ********** -->
              <!-- ERSTTELLEN DER ORDNER IN DIE DIE DATEIEN KOMPILIERT WERDEN -->
                   <target name="init">
                   <mkdir dir="${deploy}"/>
              <mkdir dir="${build}"/>
              </target>
              <!-- LÖSCHEN DER DATEIEN VOM VORHERIGEN BUILD -->
              <target name="clean">
                   <delete dir="${deploy}"/>
              <delete dir="${build}"/>
              </target>
    <!-- ********** KOMPILIERE ALLER JAVA DATEIEN ********** -->
         <target name="compile" depends="init">
              <delete dir="${build}/SAP.class"/>
              <javac srcdir="${src}"
                   destdir="${build}"
                   classpathref="project.classpath"
                   debug="on" />
         </target>
    <!-- ********** ERSTELLE DIE WAR DATEI ********** -->     
         <target name="createWar" depends="">
              <delete file="${deploy}/axis.war"/>
                   <war warfile="${deploy}/axis.war" webxml="WEB-INF/web.xml" compress="true">
                        <classes dir="${build}">
                        </classes>
                        <webinf dir="WEB-INF">
                        <exclude name="web.xml"/>
                             <exclude name="users.lst"/>
                             <exclude name="**/WEB-INF/classes/*"/>
                             <exclude name="**/lib/*"/>
                        </webinf>
                        <!--fileset dir="${}">
              <exclude name="**/WEB-INF/**"/>
                        </fileset-->
                        <lib dir="${lib}">
                        <include name="activation.jar"/>
                             <include name="axis-ant.jar"/>
                             <include name="axis.jar"/>
                             <include name="commons-discovery.jar"/>
                             <include name="commons-logging.jar"/>
                             <include name="jaxrpc.jar"/>
                             <include name="log4j.jar"/>
                             <include name="mail.jar"/>
                             <include name="saaj.jar"/>
                             <include name="sapjco.jar"/>
                             <include name="wsdl4j.jar"/>
                             <include name="tools.jar"/>
                             <include name="ant.jar"/>
                   </lib>
                   </war>
         </target>
    <!-- ********** ERSTELLE DIE EAR DATEI ********** -->     
         <target name="createEar" depends="createWar">
              <delete file="${deploy}/axis.ear"/>
                   <ear destfile="${deploy}/axis.ear" appxml="${config}/application.xml">
                        <fileset dir="${deploy}">
                             <include name="axis.war"/>
                        </fileset>
              </ear>
         </target>
    <!-- ********** DEPLOYE DIE EAR DATEI ********** -->     
         <target name="deployEar" depends="">
         <java jar="C:\Programme\orabpel\integration\orabpel\system\appserver\oc4j\j2ee\home\admin.jar" fork="yes">
         <arg value="ormi://localhost:23791"/>
         <arg value="admin"/>
         <arg value="welcome"/>
         <arg value="-deploy"/>
         <arg value="-file"/>
         <arg value="C:\Programme\eclipse\workspace\readySAPOC4J\deploy\axis.ear"/>
         <arg value="-deploymentName"/>
         <arg value="axis"/>
         </java>
         </target>
    <!-- ********** WEB APPLICATION BINDING ********** -->     
         <target name="bind-web-app" depends="">
         <java jar="C:\Programme\orabpel\integration\orabpel\system\appserver\oc4j\j2ee\home\admin.jar" fork="yes">
         <arg value="ormi://localhost:23791"/>
         <arg value="admin"/>
         <arg value="welcome"/>
         <arg value="-bindWebApp"/>
         <arg value="axis"/>
         <arg value="axis"/>
         <arg value="http-web-site"/>
         <arg value="/axis"/>
         </java>
         </target>

  • Error while deploying a web service whose return type is java.util.Date

    Hi
    I have written a simple web service which takes in a date input (java.util.Date) and returns the same date back to the client.
    public interface Ping extends Remote
    * A simple method that pings the server to test the webservice.
    * It sends a datetime to the server which returns the datetime.
    * @param pingDateRequest A datetime sent to the server
    * @returns The original datetime
    public Date ping(Date pingDateRequest) throws RemoteException;
    The generation of the Web service related files goes smoothly in JDeveloper 10g. The problem arises when I try to deploy this web service on the Oracle 10g (10.0.3) OC4J standalone. it gives me the following error on the OC4J console :
    E:\Oracle\oc4j1003\j2ee\home\application-deployments\Sachin-TradingEngineWS-WS\
    WebServices\com\sachin\tradeengine\ws\Ping_Tie.java:57: ping(java.util.Date) in com.sachin.tradeengine.ws.Ping cannot be applied to (java.util.Calendar) _result  = ((com.sachin.tradeengine.ws.Ping) getTarget()).ping
    (myPing_Type.getDate_1());
    ^
    1 error
    04/03/23 17:17:35 Notification ==&gt; Application Deployer for Sachin-TradingEngineWS-WS FAILED: java.lang.InstantiationException: Error compiling :E:\Oracle\oc4j1003\j2ee\home\applications\Sachin-TradingEngineWS-WS\WebServices: Syntax error in source [ 2004-03-23T17:17:35.937GMT+05:30 ]
    I read somewhere that the conversion between java to xml datatype and vice versa fails for java.util.Date, so it is better to use java.util.Calendar. When I change the code to return a java.util.Calendar then the JDeveloper prompts me the following failure:
    Method Ping: the following parameter types do not have an XML Schema mapping and/or serializer specified : java.util.Calendar.
    This forces me to return a String data.
    I would appreciate if someone can help me out.
    Thanks
    Sachin Mathias
    Datamatics Ltd.

    Hi
    I got the web service working with some work around. But I am not sure it this approach would be right and good.
    I started altogether afresh. I did the following step :
    1. Created an Interface (Ping.java) for use in web Service as follows :
    public interface Ping extends Remote{
    public java.util.Date ping(java.util.Date pingDateRequest)
    throws RemoteException;
    2. Implemented the above interface in PingImpl.java as follows :
    public class PingImpl implements Ping
    public java.util.Date ping(java.util.Date pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    3. Compiled the above 2 java files.
    4. Generated a Stateless Java Web Service with the help of JDeveloper. This time the generation was sucessful.(If I had "java.util.Calendar" in place of "java.util.Date" in the java code of the above mentioned files the web service generation would prompt me for error)
    5. After the generation of Web Service, I made modification to the Ping interface and its implementing class. In both the files I replaced "java.util.Date" with "java.util.Calendar". The modified java will look as follows :
    Ping.Java
    =========
    public interface Ping extends Remote{
    public java.util.Calendar ping(java.util.Calendar pingDateRequest)
    throws RemoteException;
    PingImpl.Java
    ================
    public class PingImpl implements Ping
    public java.util.Calendar ping(java.util.Calendar pingDateRequest) throws RemoteException {
    System.out.println("PingImpl: ping() return datetime = " + pingDateRequest.toString());
    return pingDateRequest;
    6. Now I recompile both the java files.
    7. Withour regenerating the Web Service I deploy the Web Service on OC4j 10.0.3 from JDeveloper. This time the deployment was sucessful.(The Deployment fails if I don't follow the step 5.)
    8. Now I generated a Stub from JDeveloper and accessed the stub from a client. It works fine. Here if you see the Stub code it takes java.util.Date as a parameter and returns a java.util.Date. (Mind you I am accepting a java.util.Calendar and returning the same in my Web Service interface. Step 5)
    The confusing thing is the Serialization and Deserialization of Data from Client java data to Soap message and Soap message to Server java data.
    From Client to SOAP :
    java.util.Date to datetime
    From SOAP to Server :
    datetime to java.util.Calendar
    From Server to SOAP :
    java.util.Calendar to datetime
    From SOAP to Client :
    datetime to java.util.Date (I am not able to understand this part of the conversion)
    Any help or inputs would be appreciated.
    Thanks
    Sachin Mathias

  • 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

  • How to deploy a web service on Oracle Application Server 10.1.2.0.2?

    Hi everyone,
    I followed the instructions of the following link to create a web service using jDeveloper 10.1.3.1.0 on Oracle Application Server 10.1.2.0.2. [http://st-curriculum.oracle.com/obe/jdev/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm#t1]
    The web service created was deployed & used with no errors on the standalone OC4J instance.
    But my goal is to deploy my web service on Oracle Application Server 10.1.2.0.2.
    So after several attempts, I was able to deploy it on the Oracle Application Server 10.1.2.0.2 but unfortunately I didn't know the URL needed to use the web service.
    I tried the following link (http://192.168.0.91:18100/JavaWebService-GetDates-context-root/GetDatesWSSoapHttpPort) but also didn't work :(
    I also tried converting to J2EE 1.3 and still not knowing how to access the web service.
    Please advice with a solution.
    Thanks in advance.
    Lana

    Thanks everyone for your help :)
    The problem turned out to be that Oracle application server 10.1.2 is unlike the others servers, it uses 2 ports:
    - port (19100) is dedicated for the console.
    - port (7779) is to view your applications.
    So the URL needed turned out to be "http://acteos-109.beirut.acteos:7779/beanTest" instead of "http://acteos-109.beirut.acteos:18100/beanTest"
    Hope this info is useful
    Lana

Maybe you are looking for

  • Adobe LiveCycle Designer 7.1 - Barcoded Forms Changes

    For those of you that have upgraded to Adobe LiveCycle Designer 7.1 you should notice that there are a few changes to the Paper Forms Barcode object interface. On the Field tab you will see that the label may be generated automatically or manually wh

  • I want to upgrade to Mac OS 10.8 Mountain Lion?

    If I upgrade to Mac OS 10.8 Montain Lion will Photoshop Elements  10 and Premeir elements 10 still work properly.  The Tech spec only mention to OS 10.7

  • Regarding direct production

    Dear all, I have checked in help portal regarding direct production, Can anybody explain with example how to process it. Because in help portal it has mention goods issue and receipt not necessary. Then how the material will take in MRP? Difference b

  • BPC Netweaver dimension formula SUM and AGGREGATE

    Hello Does anybody knows the arguments we can use with SUM and AGGREGATE in a dimension formula in BPC NW. I would like to aggregate data on a hirarchy but not from leaf level only the child at a specific level (do an average at a certain level and t

  • Example database for data warehouse

    Hi! Does anybody know where can be found exaple database for data warehouse? - schema is good - schema with data is better Best regards