Struts problem on IBM Websphere

Hi,
We have a struts application that works fine when running in the IBM Webphere Studio Application Developer.
But when it is deployed to IBM Websphere in our test environment, it spits out the following error on start up.
RVE0100E: Did not realize  init() exception thrown by servlet action: javax.servlet.UnavailableException: Parsing error processing resource path
     at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
     at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
     at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
     at javax.servlet.GenericServlet.init(GenericServlet.java:258)
     at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
     at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
     at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
     at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
     at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
     at javax.servlet.GenericServlet.init(GenericServlet.java:258)
     at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
     at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:211)
     at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:350)
     at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1217)
     at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:145)
     at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:259)
     at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:168)
     at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:857)
     at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:43)
     at com.ibm.ws.runtime.Server.startModule(Server.java:618)
     at com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:511)
     at com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
     at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:948)
     at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:137)
     at java.lang.reflect.Method.invoke(Native Method)
     at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:93)
     at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:686)
     at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java:110)
     at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
     at com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:73)
     at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:532)
     at com.ibm.CORBA.iiop.ORB.process(ORB.java:2450)
     at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
     at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
     at com.ibm.ws.util.CachedThread.run(ThreadPool.java(Compiled Code)) I have seen similar problems reported in forums and the cause is usually a problem with the struts-config file. But I have tried stripping our struts-conifg file right back and it still gives the same error. Our complete struts-config file is as follows:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<!--
     This is the Struts configuration file for the example application,
     using the proposed new syntax.
     NOTE:  You would only flesh out the details in the "form-bean"
     declarations if you had a generator tool that used them to create
     the corresponding Java classes for you.  Otherwise, you would
     need only the "form-bean" element itself, with the corresponding
     "name" and "type" attributes.
-->
<struts-config>
  <!-- ========== Form Bean Definitions =================================== -->
     <form-beans>
          <form-bean name="cardDetailForm" type="au.com.hbf.asktedadmin.form.CardDetailForm">
          </form-bean>
          <form-bean name="cardCategoryDetailForm" type="au.com.hbf.asktedadmin.form.CardCategoryDetailForm">
          </form-bean>
          <form-bean name="pollDetailForm" type="au.com.hbf.asktedadmin.form.PollDetailForm">
          </form-bean>
          <form-bean name="searchCategoryDetailForm" type="au.com.hbf.asktedadmin.form.SearchCategoryDetailForm">
          </form-bean>
     </form-beans>
  <!-- ========== Global Forward Definitions ============================== -->
  <!-- ========== Action Mapping Definitions ============================== -->
     <action-mappings>
     <action
         path="/home"
         type="au.com.hbf.asktedadmin.actions.HomeAction">
          <forward name="success" path="/home.jsp">
               <description>Home Page</description>
          </forward>
          <forward name="error" path="/error.jsp">
          </forward>
      </action>     
     <action
         path="/viewCards"
        type="au.com.hbf.asktedadmin.actions.CardViewAction">
         <forward name="success" path="/viewCards.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/viewArchivedCards"
        type="au.com.hbf.asktedadmin.actions.ArchivedCardViewAction">
         <forward name="success" path="/viewArchivedCards.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/getCard"
         name="cardDetailForm"
         validate="false"
         scope="session"
         input="/viewCards.jsp"
        type="au.com.hbf.asktedadmin.actions.CardUpdateAction">
         <forward name="success" path="/cardDetails.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/updateCard"
         name="cardDetailForm"
         validate="true"
         scope="session"
         input="/cardDetails.jsp"
        type="au.com.hbf.asktedadmin.actions.CardUpdateAction">
         <forward name="success" path="viewCards.do"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/viewCardCategories"
        type="au.com.hbf.asktedadmin.actions.CardCategoryViewAction">
         <forward name="success" path="/viewCardCategories.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/getCardCategory"
         name="cardCategoryDetailForm"
         validate="false"
         scope="session"
         input="/viewCardCategories.jsp"
        type="au.com.hbf.asktedadmin.actions.CardCategoryUpdateAction">
         <forward name="success" path="/cardCategoryDetails.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/updateCardCategory"
         name="cardCategoryDetailForm"
         validate="true"
         scope="session"
         input="/cardCategoryDetails.jsp"
        type="au.com.hbf.asktedadmin.actions.CardCategoryUpdateAction">
         <forward name="success" path="viewCardCategories.do"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/viewPolls"
        type="au.com.hbf.asktedadmin.actions.PollViewAction">
         <forward name="success" path="/viewPolls.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/getPoll"
         name="pollDetailForm"
         validate="false"
         scope="session"
         input="/viewPolls.jsp"
        type="au.com.hbf.asktedadmin.actions.PollUpdateAction">
         <forward name="success" path="/pollDetails.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/addPoll"
         name="pollDetailForm"
         validate="false"
         scope="session"
         type="au.com.hbf.asktedadmin.actions.PollUpdateAction">
         <forward name="success" path="/pollDetails.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/updatePoll"
         name="pollDetailForm"
         validate="true"
         scope="session"
         input="/pollDetails.jsp"
        type="au.com.hbf.asktedadmin.actions.PollUpdateAction">
         <forward name="success" path="viewPolls.do"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/listSearchCategories"
        type="au.com.hbf.asktedadmin.actions.SearchCategoryListAction">
         <forward name="success" path="/listSearchCategories.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/getSearchCategory"
         name="searchCategoryDetailForm"
         validate="false"
         scope="session"
         input="/listSearchCategories.jsp"
        type="au.com.hbf.asktedadmin.actions.SearchCategoryUpdateAction">
         <forward name="success" path="/searchCategoryDetails.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/updateSearchCategory"
         name="searchCategoryDetailForm"
         validate="false"
         scope="session"
         input="/searchCategoryDetails.jsp"
        type="au.com.hbf.asktedadmin.actions.SearchCategoryUpdateAction">
         <forward name="success" path="listSearchCategories.do"></forward>
          <forward name="continue" path="/searchCategoryUrls.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     <action
         path="/updateSearchCategoryUrl"
         name="searchCategoryDetailForm"
         validate="false"
         scope="session"
         input="/searchCategoryUrls.jsp"
        type="au.com.hbf.asktedadmin.actions.SearchCategoryUrlUpdateAction">
         <forward name="success" path="/searchCategoryDetails.jsp"></forward>
          <forward name="error" path="/error.jsp"></forward>
     </action>     
     </action-mappings>
     <controller processorClass="au.com.hbf.hef.web.struts.request.StrutsRequestProcessor"/>
  <!-- ========== Message Resources Definitions =========================== -->
     <message-resources parameter="au.com.hbf.asktedadmin.resources.AskTedAdminApplicationResources"/>
</struts-config>

I don't think this is the problem.
The AskTedAdminApplicationResources is included in the war under WEB-INF\classes\au\com\hbf\asktedadmin\resource\AskTedAdminApplicationResources.properties
And like I say, it works fines in the Studio Developer, but fails when deployed to websphere.

Similar Messages

  • Posting of bank detail through IDOC from IBM Websphere

    Hi
       I am facing a problem during the seletion of the Basic IDOC type in the websphere .I trying to get the bankdetails of the business partner , for that I have selected the Basic Idoc type in the configaration of the IBM websphere BUPA_C_BANKDETAIL_ADD01.
    But after the seletion when we try to connect its showing error like "<b>Segment couldnot be read for the release 700"</b>
    I have checked with the release of the SAP also , it is 700 only .
    Can anyone please help me out in this matter , its really urjent .
    Thanks & Regards
    Debasri Sarkar

    Hi,
    Have read the documentation for bapi BAPI_ACC_DOCUMENT_POST and check for documentation import parameter EXTENSIONIN 2
    Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIO
    Description
    This enhancement structure can be used to transfer additional fields.
    There are four fields available for each data record (VALUEPART1 - 4), which each contain 240 characters. A defined ABAP dictionary structure can be transferred in the field STRUCTURE, on the basis of which the field contents are read.
    The accounting document can be supplemented and changed in an implemented BAdI ( ACC_DOCUMENT) before the active accounting component is called.
    The class CL_EXM_IM_ACC_DOCUMENT is available as example implementation. Here, for each data record of the parameter that is transferred the ABAP dictionary structure is checked and the content of the fields VALUEPART1 to -4 is set in the structure. If the structure that is transferred contains a field POSNR, the associated lines of the accounting document are updated using the contents of the enhancement.

  • File Upload problem: JSF, IBM WPS and Portlet - Please HELP Vey Very Urgent

    I want to upload a file from the front end using JSF and Portlets deployed on IBM WebSphere Portal.
    I have used Apache's commons file upload functionality as the file upload provided in JSF doesnot work with portlets and the action event is not invoked If I keep enctype="multipart/form-data". So I included 3 forms in my Faces JSP file.
    1) h:form = For displyign error message on screen
    2) html:form = Include the enctype="multipart/form-data" and the input type file for uploading. And a submit button
    3) h:form: Here I have a command link which is remotely excuted on click of sumit button in my html form. This is to invoke the action event in the pagecode to get the bean value from the context.
    Now in the my doView method in the portlet, isMultipartContent(httpservletrequest) always returns null as the content type is text/html and not multipart. Onclick of the submit button in the the html form I am calling a javascript function which sets the __LINK_TARGET__ to the command link in the 3rd h:form which will call the page code.
    The problem here is action is invoked only when I return false from the above javascript else it will trigger for the first time and from second time onwards it will not invoke the action event in the pagecode method. Whent the javascript function returns false, the content type is always text/html. However if I return "true" from the javascript the content type is multipart/form-data, but the action is not triggered for the second time. So basically when the javascript functions returns true, for the first click everything works perfectly. When it returns false, the content type is text/html, but the action is invoked in the page code every time.
    Returning always true would solve my problem with the content type, but the action with the command link will not get invoked always as its some type of problem with h:commanLink :(.
    I guess I gave too much info. Heres my code stepby step.
    Can somebody please tell me , how I should also invoke the action in the page code and get the content type as "multipart/form-data" at the same time.
    1:
    ======================= Faces JSP File: BPSMacro.jsp ====================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="GENERATOR" content="IBM Software Development Platform">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="/WEB-INF/tld/j4j.tld" prefix="j4j"%>
    <%@taglib uri="/WEB-INF/tld/core.tld" prefix="core"%>
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1" session="false"%>
    <portlet:defineObjects />
    <link rel="stylesheet" type="text/css"
         href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'
         title="Style">
    <script type="text/javascript">
    function formSubmit() {
         var formName2 = document.getElementById("proxy_form_main_").title;
         var formName1 = document.getElementById("BPSMacroFormId").title;
         document.getElementById("__LINK_TARGET__").value = document.getElementById("proxy_HD_COMMAND_").title;
         document.getElementById(formName2).submit();
         return false;
    </script>
    <f:view>
         <hx:scriptCollector id="bpsMacroScriptCollector">
              <f:loadBundle var="bps" basename="bordereauprocessingsystem" />
              <table bgcolor="#FFF9C3">
                   <tr>
                        <td><h:form id="BPSMacroFormMain" styleClass="form">
                             <table class="tablemiddle" cellspacing="0" cellpadding="0">
                                  <tr>
                                       <td><h:messages layout="table" styleClass="errormessage"
                                                 id="ValidationErrorMsg" /> </td>
                                  </tr>
                             </table>
                             <j4j:idProxy id="proxy_form_main_0_" />
                        </h:form></td>
                   </tr>
                   <tr>
                        <td>
                        <form id="BPSMacroFormId" enctype="multipart/form-data">
                        <table bgcolor="#FFF9C3">
                             <tr>
                                  <td height="36" width="324">Worksheet <input type="file"
                                       name="upfile" /></td>
                             </tr>
                                  <tr>
                                       <td align="center" width="324"><input TYPE="submit"
                                       onclick="return formSubmit();" value="Upload">
                                  </td>
                             </tr>
                        </table>
                        </form>
                        </td>
                   </tr>
                   <tr>
                        <td>
                        <h:form id="BPSMacroFormMain2" styleClass="form">
                             <table cellspacing="2" cellpadding="2" class="tablemiddle">
                                  <tbody>
                                       <tr>
                                            <td colspan="2" align="center"><h:commandLink
                                                 styleClass="commandLink" id="lnkuserdelete"
                                                 action="#{pc_BPSMacro.doIdUpload1Action}">
                                                 <hx:graphicImageEx
                                                      styleClass="graphicImageEx" id="imgBtnCreateUser"
                                                      value="/theme/images/btnUpload.gif" style="border:0;cursor:pointer"></hx:graphicImageEx>
                                                 <j4j:idProxy id="proxy_HD_COMMAND_" />
                                            </h:commandLink></td>
                                            <h:inputHidden id="dtSize"
                                                 value="#{pc_BPSMacro.fileDetailsList.clicked}">
                                                 <j4j:idProxy id="proxy_clicked_" />
                                            </h:inputHidden>
                                       </tr>
                                  </tbody>
                             </table>
                             <j4j:idProxy id="proxy_form_main_" />
                        </h:form>
                   </td>
                   </tr>
              </table>
         </hx:scriptCollector>
    </f:view>
    ================== END: FACES JSP FILE: BPSMacro.jsp ========================
    2:
    =================== Action event in the Page Code: BPSMacro.java ============
    public String doIdUpload1Action() {
              System.out.println("PageCode");
              FacesContext context = FacesContext.getCurrentInstance();
              BPSMacroDetailsDataBean fileDetails = (BPSMacroDetailsDataBean)context.getApplication().createValueBinding("#{fileDetails}").getValue(context);
              BPSMacroListDataBean fileDetailsList = (BPSMacroListDataBean)context.getApplication().createValueBinding("#{fileDetailsList}").getValue(context);
              PortletSession sess = (PortletSession)context.getExternalContext().getSession(false);
              sess.setAttribute("BPS_MACRO_CONTEXT", context, PortletSession.APPLICATION_SCOPE);
              sess.setAttribute("BPS_MACRO_FILE_DETAILS", fileDetails, PortletSession.APPLICATION_SCOPE);
              sess.setAttribute("BPS_MACRO_FILE_LIST", fileDetailsList, PortletSession.APPLICATION_SCOPE);
              HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
              boolean isMultipart = ServletFileUpload.isMultipartContent(request);
              request.getContentType();
              return "gotoBPSMacro";
    ============== END Of Page Code Action event ==============================
    3:
    ============== doView() Portlet method ================================
    public void doView(RenderRequest arg0, RenderResponse arg1)
         throws PortletException, IOException {
              String METHOD_NAME = "doView(RenderRequest arg0, RenderResponse arg1)";
              Logger.debug(this.getClass(), METHOD_NAME, "Entering BPSMacroPortlet");
              FacesContext context = FacesContext.getCurrentInstance();      
              PortletSession sess1 = arg0.getPortletSession(true);
              BPSMacroDetailsDataBean fileDetails = new BPSMacroDetailsDataBean();
              BPSMacroListDataBean fileDetailsList = new BPSMacroListDataBean();
              context = (FacesContext)sess1.getAttribute("BPS_MACRO_CONTEXT", PortletSession.APPLICATION_SCOPE);
              if(context != null){
                   fileDetails = (BPSMacroDetailsDataBean)sess1.getAttribute("BPS_MACRO_FILE_DETAILS", PortletSession.APPLICATION_SCOPE);
                   fileDetailsList = (BPSMacroListDataBean)sess1.getAttribute("BPS_MACRO_FILE_LIST", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_CONTEXT", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_FILE_DETAILS", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_FILE_LIST", PortletSession.APPLICATION_SCOPE);
              HttpServletRequest servletRequest = (HttpServletRequest)arg0;
              PortletRequest pReq = (PortletRequest)arg0;
              HttpServletResponse servletResponse= (HttpServletResponse)arg1;
              System.out.println("\n\n Content Type" + servletRequest.getContentType());
              try{
                   if(context != null){
              boolean isFileMultipart = ServletFileUpload.isMultipartContent(servletRequest);
              System.out.println("\nFILE TO BE UPLOADED IS MULTIPART ? " + isFileMultipart);
              if(isFileMultipart){
                   FileItemFactory factory = new DiskFileItemFactory();
                   ServletFileUpload upload = new ServletFileUpload(factory);
                   List items = upload.parseRequest(servletRequest);
                   Iterator iterator = items.iterator();
                   while (iterator.hasNext()) {
                        FileItem item = (FileItem) iterator.next();
                        InputStream iStream = item.getInputStream();
                        ByteArrayOutputStream ByteArrayOS = new ByteArrayOutputStream();
                        int sizeofFile =(int) item.getSize();
                        byte buffer[] = new byte[sizeofFile];
                        int bytesRead = 0;
                        while( (bytesRead = iStream.read(buffer, 0, sizeofFile)) != -1 )
                             ByteArrayOS.write( buffer, 0, bytesRead );
                        String data = new String( ByteArrayOS.toByteArray() );
                        int k = 0;
                        //Check if the file is Refund or Premium
                        int dynamicArraySize = 0;// = st2.countTokens() * 9;
                        dynamicArraySize = st2.countTokens() * 9;
                        if (!item.isFormField() ){
                             File cfile=new File(item.getName());
                             String fileName = "";
                             String separator = "\\";
                             int pos = item.getName().lastIndexOf(separator);
                             int pos2 = item.getName().lastIndexOf(".");
                             if(pos2>-1){
                                  fileName =item.getName().substring(pos+1, pos2);
                             }else{
                                  fileName =item.getName().substring(pos+1);
                             File fileToBeUploaded=new File("C:\\Sal\\BPS MACRO\\FileTransfer\\Desti", fileName);
                             item.write(fileToBeUploaded);
                             validate.displaySuccessMessage(context);
              }catch(Exception e){System.out.println(e);
              Logger.debug(this.getClass(), METHOD_NAME, "Leaving BPSMacroPortlet");
              super.doView(arg0, arg1);
    ==== END: doView method in the portle class. ================================
    Thanks.

    one more question. Is there a way where I can submit two forms ?
    Thats is submit 2nd form only when the first form is submitted.
    I tried this it works.
    function formSubmit(){
    document.form1.submit();
    alert();
    document.form2.submit();
    But If I dont put an alert(basically it disables the parent page) in between, only the second form is submitted.
    If I put a delay of say 3 seconds in between then it will throw a SOCKET CLOSED error in the code triggered due to first form submit.
    Thus disabling the paresnt page for a few seconds is reolving my problem.
    Any ideas ?
    Well Basically when the Alert pop's up the parent page "STALLS" and thus the form2 does not submit till I click on OK, Is there a way I can stall the browser/Parent JSP page using JAVA SCRIPT ??
    Edited by: hector on Oct 9, 2007 11:09 AM
    Edited by: hector on Oct 9, 2007 2:12 PM

  • JMS Receiver Adapter - com.ibm.websphere.naming.WsnInitialContextFactory

    Hello experts,
    I am trying to configure JMS Adapter to Access Websphere Application Server via JNDI. The configuration is as follow:
    Initial Context Factory: com.ibm.websphere.naming.WsnInitialContextFactory
    Connection Factory: jms/messageQueueCF
    Server URL: iiop://ammtnode.iubs.intra:2809/
    Queue Name: jms/EXT_INPUT_QUEUE
    I deployed all required jar files but Iu2019m still unable to connect to WAS because adapter cannot initialize ORB:
    javax.naming.NamingException: Failed to initialize the ORB
    I wrote a small java class to check where the problem was:
    ============================================================================
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
    env.put(Context.PROVIDER_URL, "iiop://ammtnode.iubs.intra:2809/");
    env.put("java.naming.corba.orb",org.omg.CORBA.ORB.init((String[])null,null));
    Context jndiContext = null;
    try {
    jndiContext = new InitialContext(env);
    ConnectionFactory connectionFactory = (ConnectionFactory) jndiContext.lookup("jms/messageQueueCF");
    Connection qConn = connectionFactory.createConnection();
    Session qSession = qConn.createSession(false,Session.AUTO_ACKNOWLEDGE);
    Queue q = (Queue) jndiContext.lookup("jms/EXT_INPUT_QUEUE");
    MessageProducer producer = qSession.createProducer(q);
    TextMessage message = qSession.createTextMessage();
    message.setText(text);
    producer.send(message);
    producer.close();
    qSession.close();
    qConn.close();
    } catch (Exception e) {
         e.printStackTrace();
    ============================================================================
    I got the same error until I wrote this line:
    env.put("java.naming.corba.orb",org.omg.CORBA.ORB.init((String[])null,null));
    And everything worked fine. Now I want to do the same in my JMS Receiver adapter but I donu2019t know how to introduce this line in the Initial Context Environment. I tried as JMS additional parameters and additional properties as well. However, nothing worked. Does anybody know what Iu2019m doing wrong?
    Thank you in advance!

    Here I post the entire error:
    0#0#Warning##Java###Catching #1#com.sap.aii.adapter.jms.api.connector.ConnectorException: Error looking up connection fact
    oryjms/messageQueueCF, for profile: ConnectionProfile of channel: CC_I002_AMM_JmsReceiveron node: 5949650 having object id: 0
    360697bc61b3666aba07a2708ca095a: javax.naming.NamingException: Failed to initialize the ORB
            at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createConnectionFactory(JndiConnectorImpl.java:134)
            at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.doConnect(ConnectorImpl.java:247)
            at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.doConnect(JndiConnectorImpl.java:185)
            at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.connectIfDisconnected(ConnectorImpl.java:170)
            at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.connect(ConnectorImpl.java:153)
            at com.sap.aii.adapter.jms.core.channel.ChannelImpl.doStart(ChannelImpl.java:279)
            at com.sap.aii.adapter.jms.core.channel.ChannelImpl.start(ChannelImpl.java:166)
            at com.sap.aii.adapter.jms.core.channel.AdapterImpl$1.run(AdapterImpl.java:411)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    Caused by: javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.ClassCastException: class
    com.sap.engine.system.ORBProxy:sun.misc.Launcher$AppClassLoaderAT5d0385c1 incompatible with class com.ibm.CORBA.iiop.ORB:libra
    ry:com.sap.aii.adapter.libATcom.sap.engine.boot.loader.ResourceMultiParentClassLoaderAT131b92e6ATalive]
            at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:364)
            at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:421)
            at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
            at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
            at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
            at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createConnectionFactory(JndiConnectorImpl.java:130)
            ... 11 more
    Caused by: java.lang.ClassCastException: class com.sap.engine.system.ORBProxy:sun.misc.Launcher$AppClassLoaderAT5d0385c1 incom
    patible with class com.ibm.CORBA.iiop.ORB:library:com.sap.aii.adapter.libATcom.sap.engine.boot.loader.ResourceMultiParentClass
    LoaderAT131b92e6ATalive
            at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:92)
            at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
            at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
            at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
            at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
            at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:356)
            ... 19 more
    Caused by:
    javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.ClassCastException: class com.sap.eng
    ine.system.ORBProxy:sun.misc.Launcher$AppClassLoaderAT5d0385c1 incompatible with class com.ibm.CORBA.iiop.ORB:library:com.sap.
    aii.adapter.libATcom.sap.engine.boot.loader.ResourceMultiParentClassLoaderAT131b92e6ATalive]
            at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:364)
            at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:421)
            at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
            at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
            at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
            at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createConnectionFactory(JndiConnectorImpl.java:130)
            ... 11 more
    Caused by: java.lang.ClassCastException: class com.sap.engine.system.ORBProxy:sun.misc.Launcher$AppClassLoaderAT5d0385c1 incom
    patible with class com.ibm.CORBA.iiop.ORB:library:com.sap.aii.adapter.libATcom.sap.engine.boot.loader.ResourceMultiParentClass
    LoaderAT131b92e6ATalive
            at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:92)
            at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
            at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
            at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
            at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
            at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:356)
            ... 19 more
    Caused by:
    javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.ClassCastException: class com.sap.eng
    ine.system.ORBProxy:sun.misc.Launcher$AppClassLoaderAT5d0385c1 incompatible with class com.ibm.CORBA.iiop.ORB:library:com.sap.
    aii.adapter.libATcom.sap.engine.boot.loader.ResourceMultiParentClassLoaderAT131b92e6ATalive]
            at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:364)
            at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:421)
            at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:123)
            at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:798)
            at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
            at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createConnectionFactory(JndiConnectorImpl.java:130)
            at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.doConnect(ConnectorImpl.java:247)
            at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.doConnect(JndiConnectorImpl.java:185)
            at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.connectIfDisconnected(ConnectorImpl.java:170)
            at com.sap.aii.adapter.jms.core.connector.ConnectorImpl.connect(ConnectorImpl.java:153)
            at com.sap.aii.adapter.jms.core.channel.ChannelImpl.doStart(ChannelImpl.java:279)
            at com.sap.aii.adapter.jms.core.channel.ChannelImpl.start(ChannelImpl.java:166)
            at com.sap.aii.adapter.jms.core.channel.AdapterImpl$1.run(AdapterImpl.java:411)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    Caused by: java.lang.ClassCastException: class com.sap.engine.system.ORBProxy:sun.misc.Launcher$AppClassLoaderAT5d0385c1 incom
    patible with class com.ibm.CORBA.iiop.ORB:library:com.sap.aii.adapter.libATcom.sap.engine.boot.loader.ResourceMultiParentClass
    LoaderAT131b92e6ATalive
            at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:92)
            at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
            at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
            at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
            at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
            at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:356)
            ... 19 more

  • Connecting different versions of MQ Ibm Websphere using PI 7.1

    Hi Experts,
    We are having one mq server which is installed on a third party system which we are currenlty using without having any issues.
    the mq series is ibm websphere version 6.
    we have these following jar files installed on pi.
    <jars>
    <jar-name>lib/com.sap.aii.adapter.lib_api.jar</jar-name>
    <jar-name>lib/ojdbc14.jar</jar-name>
    <jar-name>lib/client.jar</jar-name>
    <jar-name>lib/msbase.jar</jar-name>
    <jar-name>lib/mssqlserver.jar</jar-name>
    <jar-name>lib/msutil.jar</jar-name>
    <jar-name>lib/com.ibm.mq.jar</jar-name>
    <jar-name>lib/com.ibm.mqjms.jar</jar-name>
    <jar-name>lib/connector.jar</jar-name>
    <jar-name>lib/CL3Export.jar</jar-name>
    <jar-name>lib/CL3Nonexport.jar</jar-name>
    <jar-name>lib/dhbcore.jar</jar-name>
    <jar-name>lib/rmm.jar</jar-name>
    </jars>
    we are able to connect to this system sucessfully using jms.
    the issue we are facing now is we have now another new mq server installed which we want to use
    this is version ibm websphere 5.3.
    we have gone through sap notes and found that these jar files need to be in place for 5.3
    MQSeries 5.3
    com.ibm.mq.jar
    com.ibm.mqbind.jar
    com.ibm.mqjms.jar
    connector.jar (this file can also be retrieved from the SAP J2EE server directory)
    by comparing with the jar files we currenlty have installed
    this jar file is missing com.ibm.mqbind.jar for 5.3
    we are unable to connect to this new mq server and facing the issues.(reciever jms)
    the message in rwb is
    Error creating JMS connection. JMS provider gave error message as MQJMS2005: failed to create MQQueueManager for 'Servername:Queuemangername' MQJE001: An MQException occurred: Completion Code 2, Reason 2009
    MQJE016: MQ queue manager closed channel immediately during connect
    Closure reason = 2009, and error code as MQJMS2005.
    we have gone through notes 1086303 and found that it might be due to wrong queuemanager name.
    our mq team is saying that they have configured everything perfectly.
    what we have is now 2 queries:
    1. is this error caused due to the mqbind jar file missing.if so than we can tell our nw team to install that jar files.is it necessary as we have already jar files for version 6? will version 6 jar files be compatible if we install these new jar file which is missing as we dont want to mess the existing scenarios?
    2. is there any other config we are missing on pi side so that we are 100 percent sure its not the error on pi side and some config is missing on jms side.
    please advice.
    many thanks.
    regards
    j

    Hi Jyoti,
    You say to choose between the possibility of a missing jar and other of a Queue manager. I think first and foremost get the missing jar file installed and secondly , try the following suggestions.
    1) It appears that the MQ JMS server is refusing connections from the MQ JMS c=
    lient. I suggest looking up "MQJMS2005" in the IBM documentation and also =
    checking if the IBM specific connection string '147.149.178.44:BT.QM.IVASCT=
    G' is correct.
    2) I guess so because 2009 indicates a communication problem. It appears that the foreign JMS provider is restricting the number of conne=
    ctions that can be made to it. I'd check the license restrictions/configura=
    tion of the foreign JMS provider and ensure it allows the required number o=
    f concurrent connections. The closure reason code 2009 should indicate what=
    the problem is.
    Regards
    joel

  • Calling an Abap Web Service from IBM WebSphere with a MYSAPSSO2 Cookie

    Hello,
    I have the following problem :
    I have to develop a proof of concept between IBM Web Sphere 5.1 and SAP AS JAVA 7.0.
    I have created an IBM sevlet in Web Sphere, I use a specific redirect from an SAP AS Java to call it, this way I can have a SAP Logon Ticket, and I manage to call an ABAP module function with JCO with SSO.
    Scenario 1 : browser  + authentication --> AS Java redirect servlet MYSAPSSO2 cookie -> IBM WebSphere servlet JCO -> Abap module function (ECC5)
    This scenario works fine.
    I have to do the same scenario with a Web Service and I don't know what to do.
    I try to use jax-rpc handlers but I don't know how to pass my cookie from my servlet to my handler.
    Scenario 2 : browser + authentication --> AS Java redirect servlet MYSAPSSO2 cookie -> IBM WebSphere servlet JCO -> Abap Web Service (ECC5)
    Has someone already done that  ?
    Regards,  Julien.

    Julien,
    Why are you using 5.1....go for 6.0 and its cake walk, i have integrated WebSphere 6.0 with R/3 uysing xi.....in a week.
    Scenario changed to:--
    Browser+ authentication --> WebSphere AS servlet request --> XI --> RFC/bapi --> abap webService
    Hope that helps
    Regards
    Ravi

  • XI to IBM Websphere Default JMS Provider with JNDI

    Hello everybody!
    We face a problem with connecting SAP XI to IBM WebSphere Default JMS Provider (need to send a message from XI to WebSphere JMS and receive the response).
    We have the following versions installed:
        SAP XI: 7.0 SP8 , Sun JDK 1.4.2
        IBM WebSphere: IBM WebSphere Application Server ND, 6.0.2.17, J2RE 1.4.2 IBM
    We cannot set the JMS adapter of SAP XI for conecting with IBM WebSphere Default JMS Provider. The Communication Channel has erroneous state (at runtime) and the Communication Channel Monitoring tool displays the error message as described below (under "Variant 1" and "Variant 2" sub-headings) depending on the settings performed. 
    For connecting, the following JMS-provider settings were used at IBM WebSphere side:
       JMS Providers: Default Messaging Provider
       Queue Connection Factories: name:QueueConnectionFactory, jndi:jms/QueueConnectionFactory, provider: Default Messaging Provider
       Queues: name Queue, jndi: jms/Queue, provider: Default Messaging Provider
    The XI communication channel (and associated JMS-adapter) was set as Variants 1 and 2 show. Settings for both cases and received error messages were the following:
    <b>Variant 1.</b>
        Adapter type: JMS
        Type: Receiver
        JMS Provider: Access JMS Provider with JNDI (Java Naming and Directory Interface)
        JNDI Lookup Name of QueueConnectionFactory:  jms/QueueConnectionFactory
        JNDI Lookup Name of JMS Queue: jms/Queue
        Name of JNDI Initial Context Factory: com.sap.engine.services.jndi.InitialContextFactoryImpl
        JNDI Server Address: iiop://WEBSPHERE.HOST:2809/ 
        As the result, the Communication Channel Monitoring displays that the channel has erroneous state and the following error message is written:
        "Error during channel initialization; exception trace: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of jms/QueueConnectionFactory.
    at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)"
    <b>Variant 2</b>
        The same settings as in Variant 1 above, were used and additionally the following settings were done:
        - Name of JNDI Initial Context Factory: com.ibm.websphere.naming.WsnInitialContextFactory
        - The archive aii_af_jmsproviderlib.sda containing libraries required by WsInitialContextFactory, was deployed to the SAP WebAS where the XI is running. Those libraries were taken from WebSphere Application Server Pluggable Application Client installation package (described in the article "WebSphere Application Server Pluggable Application Client" located at http://www-128.ibm.com/developerworks/websphere/library/techarticles/0409_bhogal/0409_bhogal.html)
        - Also, as it is recommended in the referred article, the files required by IBM's iiop protocol (ibmext.jar ibmorb.jar ibmorbapi.jar) were put to the folder jre/lib/endorsed of the server(Sun JVM 1.4.2 is used by SAP WebAS / XI).
        As the result, the Communication Channel Monitoring displays that the channel has erroneous state as well and the following error message is written:
       "No adapter registered for this channel"
    We have not found the recommended solution either in SDN forums or in Internet in general. Is it yet possible to connect SAP XI to IBM WebSphere Default JMS Provider having mentioned product versioning? If yes, what settings have to be performed?

    IBM Websphere Default JMS Provider which is installed alongwith the application server is nothing but a scaled down version of the IBM WebSphere MQSeries. you should be able to connect to it with the same settings that can be used for a separate MQSeries server connectivity from XI.

  • Lookup problem for Standalone Websphere application.  What to do?

    Hi friends. This is my first discussion. Coming to the topic, I have created a Data Source (DB2) in WebSphere. JNDI name has been configured. I have done the Standalone application and got over. The question is how to LOOKUP JNDI name for the StandAlone application and how to ACCESS?
    The program is as follows(code snippet):
    class DBConnect4 {
         public static void main(String[] args) throws NamingException, SQLException {
              Properties props = new Properties();
              props.put(Context.INITIAL_CONTEXT_FACTORY,
                        "com.ibm.websphere.naming.WsnInitialContextFactory");
              /*props.put(Context.INITIAL_CONTEXT_FACTORY,
               "com.sun.jndi.cosnaming.CNCtxFactory");*/
    // --------------------the problem occurs here------------------------------------
    // --------------------at props.put(Context.PROVIDER_URL,"iiop://............
              props.put(Context.PROVIDER_URL, "iiop://172.23.99.88:9064");//172.23.99.88
              System.out.println("The Connection is" + props);
              try {
                   InitialContext initContext = new InitialContext(props);
                   Object obj = initContext.lookup("jdbc/myDataSource");
                   DataSource ds = (DataSource) obj;
                   Connection connection = ds.getConnection("db2admin", "Syntel123$");
                   System.out.println("Connection estblished");I have configured everything, instead I am getting the following error:
    The Connection is{java.naming.provider.url=iiop://172.23.99.88:9064, java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory}
    The Exception is:Failed to initialize the ORB
    javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl]
         at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:318)
         at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:392)
         at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:117)
         at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:712)
         at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:171)
         at javax.naming.InitialContext.lookup(Unknown Source)
         at src.DBConnect4.main(DBConnect4.java:27)
    Caused by: java.lang.ClassCastException: com.sun.corba.se.impl.orb.ORBImpl
         at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:86)
         at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
         at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
         at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
         at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
         at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:309)
         ... 6 more

    hi, I get the same exception in a completely different context. Could you solve your problem?
    Regards,
    guschra
    Message was edited by:
    guschra

  • IBM WebSphere Community Edition

    Hi,<BR><BR>Has anyone tried IBM WebSphere Community Edition with any Hyperion product? WebSphere CE is based on Apache's Geronimo J2EE server. Any good / bad experience?<BR><BR>Regards,<BR>Gerd

    step 1: find the manual
    step 2: read the manual
    step 3: understand the manual
    step 4: follow the instructions found in the manual
    problem solved (though with IBM manuals I will have to practice caution there, they're not always good but mostly the bad parts are the obscure ones).

  • Xmlparserv2.jar cause IBM WebSphere v5.1 down.

    Anyone knows:
    I have a j2ee project based on IBM WebSphere v5.1 + Oracle DB 10g(XMLDB included).There's a big trouble bother me.
    My project used Oracle xml implemention,such as DOM parser included in xmlparserv2.jar.and when i deploy my project to WAS(WebSphere Application Server),it throws errors and can not startup normally.it's sounds that WAS cann't determine which xml implemention it should choose:
    Error message below:
    ==============================================
    *** 启动服务器 ***
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O java.net.MalformedURLException: unknown protocol: f
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at java.net.URL.<init>(URL.java(Compiled Code))
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at java.net.URL.<init>(URL.java(Compiled Code))
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at java.net.URL.<init>(URL.java:450)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:214)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:177)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.websphere.product.xml.BaseFactory.load(BaseFactory.java:191)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.websphere.product.xml.BaseFactory.load(BaseFactory.java:173)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.websphere.product.WASProduct.loadVersionInfo(WASProduct.java:1876)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.websphere.product.WASProduct.getVersionInfo(WASProduct.java:1829)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.websphere.product.WASProduct.getPlatform(WASProduct.java:845)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.ws.runtime.component.TraceImpl.initialize(TraceImpl.java:59)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
    [05-5-2 12:06:49:906 CST] 3d455614 SystemOut O at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
    [05-5-2 12:06:49:922 CST] 3d455614 SystemOut O at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    [05-5-2 12:06:49:922 CST] 3d455614 SystemOut O at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [05-5-2 12:06:49:922 CST] 3d455614 SystemOut O at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    [05-5-2 12:06:49:922 CST] 3d455614 SystemOut O at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    [05-5-2 12:06:49:922 CST] 3d455614 SystemOut O at java.lang.reflect.Method.invoke(Method.java:386)
    [05-5-2 12:06:49:922 CST] 3d455614 SystemOut O at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    [05-5-2 12:06:49:922 CST] 3d455614 SystemOut O at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
    ************ Start Display Current Environment ************
    Host Operating System is Windows XP, version 5.1
    Java version = J2RE 1.4.1 IBM Windows 32 build cn1411-20031011 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
    was.install.root = f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51
    user.install.root = f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51
    Java Home = f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51\java\jre
    ws.ext.dirs = f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/java/lib;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/classes;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/classes;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/lib;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/lib/ext;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/web/help;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;F:\document\musicool\CVS\libs\xsdbeans.jar;F:/Program_Files/IBM/SQLLIB/java/db2java.zip;f:/Program_Files/IBM/WebSphere_Studio/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.1/runtime/worf.jar
    Classpath = f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/properties;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/properties;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/lib/bootstrap.jar;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/lib/j2ee.jar;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/lib/lmproxy.jar;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/lib/urlprotocols.jar;F:\document\musicool\CVS\libs\workflow.jar;F:\document\musicool\CVS\libs\DBClient.jar;F:\document\musicool\CVS\libs\log4j-1.2.8.jar;F:\document\musicool\CVS\libs\log.jar;F:\document\musicool\CVS\libs\utility.jar;F:\document\musicool\CVS\libs\webwork.jar;F:\document\musicool\CVS\libs\xdb.jar;F:\Oracle\product\10.1.0\Client_1\lib\xsu12.jar;f:/Program_Files/IBM/WebSphere_Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wteServers.jar;f:/Program_Files/IBM/WebSphere_Studio/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1/runtime/wasToolsCommon.jar
    Java Library path = f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/bin;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/java/bin;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51/java/jre/bin;F:\Program_Files\IBM\WebSphere_Studio\eclipse\jre\bin;.;F:\Program_Files\IBM\WebSphere_Studio\eclipse\jre\bin;F:\eclipse\301\bpelz_install\bin;f:\Oracle\product\10.1.0\Client_1\bin;f:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;f:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;f:\Program_Files\IBM\WebSphere_Studio\extras\bin;f:\Program_Files\IBM\WebSphere_Studio\bin;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51\java\bin;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51\java\jre\bin;f:\Program_Files\IBM\WebSphere_Studio\runtimes\base_v51\java\jre\bin\classic;f:\Program_Files\UltraEdit;f:\Program_Files\SecureCRT;F:\PROGRA~1\IBM\SQLLIB\BIN;F:\PROGRA~1\IBM\SQLLIB\FUNCTION;F:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program Files\Common Files\Ulead Systems\MPEG;;;;;f:\Program_Files\Real\Helix_Producer_Plus;F:\Program_Files\Rational\common;F:\eclipse\301\bpelz_install\bin;f:\Program_Files\UltraEdit
    ************* End Display Current Environment *************
    [05-5-2 12:06:49:938 CST] 3d455614 ManagerAdmin I TRAS0017I: 启动跟踪状态是 *=all=disabled。
    [05-5-2 12:06:50:609 CST] 3d455614 AdminInitiali A ADMN0015I: AdminService 初始化
    [05-5-2 12:06:50:656 CST] 3d455614 MBeanDescript W ADMN0001W: 无法è¯æ³•åˆ†æž MBean 描述符文件 com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: 无法è¯æ³•åˆ†æž MBean 描述符文件 com/ibm/ws/management/descriptor/xml/JVM.xml。
    at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
    at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:277)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
    at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    at java.lang.reflect.Method.invoke(Method.java:386)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
    。
    [05-5-2 12:06:50:688 CST] 3d455614 WsServer E WSVR0003E: 服务器 server1 无法启动
    com.ibm.ws.exception.ConfigurationError: Problem initializing AdminImpl:
    at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:413)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
    at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    at java.lang.reflect.Method.invoke(Method.java:386)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
    Caused by: com.ibm.ws.exception.ConfigurationWarning: Problem registering JVM MBean.
    at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:283)
    ... 11 more
    Caused by: com.ibm.websphere.management.exception.AdminException: ADMN0005E: 无法激活 MBean:类型 JVM、合作者 [email protected]c1619、配置标识 JVM 和描述符 null。
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:289)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
    at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:277)
    ... 11 more
    Caused by: com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: 无法è¯æ³•åˆ†æž MBean 描述符文件 com/ibm/ws/management/descriptor/xml/JVM.xml。
    at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
    ... 13 more
    ---- Begin backtrace for nested exception
    com.ibm.ws.exception.ConfigurationWarning: Problem registering JVM MBean.
    at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:283)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
    at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    at java.lang.reflect.Method.invoke(Method.java:386)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
    Caused by: com.ibm.websphere.management.exception.AdminException: ADMN0005E: 无法激活 MBean:类型 JVM、合作者 [email protected]c1619、配置标识 JVM 和描述符 null。
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:289)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
    at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:277)
    ... 11 more
    Caused by: com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: 无法è¯æ³•åˆ†æž MBean 描述符文件 com/ibm/ws/management/descriptor/xml/JVM.xml。
    at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
    ... 13 more
    ---- Begin backtrace for nested exception
    com.ibm.websphere.management.exception.AdminException: ADMN0005E: 无法激活 MBean:类型 JVM、合作者 [email protected]c1619、配置标识 JVM 和描述符 null。
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:289)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
    at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:277)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
    at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    at java.lang.reflect.Method.invoke(Method.java:386)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
    Caused by: com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: 无法è¯æ³•åˆ†æž MBean 描述符文件 com/ibm/ws/management/descriptor/xml/JVM.xml。
    at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
    ... 13 more
    ---- Begin backtrace for nested exception
    com.ibm.websphere.management.exception.DescriptorParseException: ADMN0001W: 无法è¯æ³•åˆ†æž MBean 描述符文件 com/ibm/ws/management/descriptor/xml/JVM.xml。
    at com.ibm.ws.management.descriptor.MBeanDescriptorLoader.loadDescriptor(MBeanDescriptorLoader.java:106)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.loadDescriptorFile(MBeanDescriptorManager.java:260)
    at com.ibm.ws.management.descriptor.MBeanDescriptorManager.getDescriptor(MBeanDescriptorManager.java:118)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:250)
    at com.ibm.ws.management.MBeanFactoryImpl.activateMBean(MBeanFactoryImpl.java:217)
    at com.ibm.ws.management.component.AdminImpl.initialize(AdminImpl.java:277)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
    at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    at java.lang.reflect.Method.invoke(Method.java:386)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
    [05-5-2 12:06:50:703 CST] 3d455614 WsServer E WSVR0009E: 启动期间发生错误
    =================================
    Best Regard.
    Musicool

    I had this issue too. I removed all non-Oracle classes (javax, org.w3c) from the jar file and things then worked as expected. Basically, these javax and w3c files were duplicating versions already existing in the WPS classpath (I presume) and were causing the failure.
    Hope this helps.
    -Tim

  • Design Plan For IBM WebSphere MQ

    Hi,
    I am trying to monitor a queue within IBM Websphere MQ using Oracle BAM.The configuration parameters of Enterprise Message Source looks like the following:
    Type: IBM WebSphere MQ
    Initial Context Factory: com.sun.jndi.fscontext.RefFSContextFactory.
    JNDI Service Provider URL: file:/C:/JNDI.
    TopicConnectionFactory Name: MQAPPDEV01.
    Topic Name: MQTEST.2.ESB.LQ.
    JMS Message Type: TextMessage.
    Durable Subscriber Name (Optional):
    Message Selector (Optional):
    Client ID (Optional): esbsrv
    I get the following error in Enterprise Link.The Plan has two nodes :Oracle BAM Enterprise Message Receiver->Grid
    IMessageSourceReceiver->messageReceive: java.lang.ClassCastException
         at iteration.enterpriselink.sources.JMSConsumer.start(JMSConsumer.java:85)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.jmsConsumerStart(JMSMessageSourceReceiverImpl.java:1001)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.messageReceive(JMSMessageSourceReceiverImpl.java:326)
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3A]
    Error during Message Receive operation.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3B]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    IMessageSourceReceiver->messageReceive: java.lang.ClassCastException
         at iteration.enterpriselink.sources.JMSConsumer.start(JMSConsumer.java:85)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.jmsConsumerStart(JMSMessageSourceReceiverImpl.java:1001)
         at iteration.enterpriselink.sources.JMSMessageSourceReceiverImpl.messageReceive(JMSMessageSourceReceiverImpl.java:326)
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3A]
    Error during Message Receive operation.
    [Oracle BAM Enterprise Link error code:  0x75 -- 0x1, 0x75 -- 0x3B]
    Error while processing the data for the step 'Oracle BAM Enterprise Message Receiver'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Update of Plan "Untitled, created 10/2/2008 11:11:03 AM" failed.
    [Oracle BAM Enterprise Link error code:  PlanMgr -- 0x1, PlanMgr -- 0xD5]
    I tried changing the JMS Message Type to MapMessage.But No luck.
    Can anyone give me directions to resolve this issue or if there is some document i should be referring to.I am not looking for publish/subscribe design.This is strictly point to point.
    Thankyou,
    Suchith

    It may be worth setting up a little java test program to try out your settings and see if you can recreate the problem in an environment where you have more control.
    Are you sure that the messages are TextMessages?

  • IBM Websphere to ActiveDirectory ( Win 2003 ) LDAP SSL.

    I am trying to connect to Win 2003 Ad LDAP from websphere Application server.
    I have installed certificates Win2k in to local key store.
    I used ikeyman of Websphere. Win 2k3 certificates were in .arm format ( thatz how Win2k3 admin gave me) . I succesfully installed the certificates in local keystore. and pointed to the keystoere when LDAP connection is happening.
    I am getting a MalformedURLException canot parse url ldaps://xx.xx.x.x:636
    Not an LDAP url .
    At the same time i also tried with Sun JDK . it shows another error .
    default context init failed: java.security.cert.CertificateParsingException: java.io.IOException: subject key, Unknown k
    ey spec: Invalid RSA modulus size.
    Please help me . I want this program to run from IBM Websphere Env.
    Please find my code below
    thanks in advance.
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.naming.ldap.*;
    import javax.naming.directory.*;
    import java.io.*;
    public class Test {
    public static void main(String args[] ) {
              //String userName = "CN=Renjith\\, Vasudevan";
              String userName = null;
              String test = ",OU=xx,OU=xx,DC=xx,DC=xxm";
              String newPassword = "xxx";
              String oldPassword = "xx";
              Hashtable env = new Hashtable();
              //Hard coded values - will be moved to properties file.
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              //env.put(Context.PROVIDER_URL, "ldap://X.X.X.X:389");
              env.put(Context.PROVIDER_URL, "ldaps://X.X.X.X:636");
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              //env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
              env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
              env.put(Context.SECURITY_CREDENTIALS, "xxxx");
              //env.put(Context.SECURITY_PROTOCOL,"ssl");
              String keystore = "C:\\j2sdk1.4.2_04\\jre\\lib\\security\\cacerts";
              System.setProperty("javax.net.ssl.trustStore",keystore);
              System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
              try {
                   // Create the initial directory context
                   LdapContext ctx = new InitialLdapContext(env,null);
                   // This following code only for getting correct dn - Hardcoded dn had some tabbing/char problem.
                   // Renjith - begin
                   SearchControls constraints = new SearchControls();
                   constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
                   String[] strAttributes = { "sAMAccountName", "memberOf" };
                   //String FILTER = "(&(objectClass=user))";
                   String FILTER = "(&(objectClass=user)(sAMAccountName=prrev))";
                   String searchBase = "OU=xx,OU=xx,DC=infores,DC=xx";
                   constraints.setReturningAttributes(strAttributes);
                   NamingEnumeration results =
                        ctx.search(searchBase, FILTER, constraints);
                   System.out.println("results : " + results);
                   while (results != null && results.hasMore()) {
                        SearchResult sr = (SearchResult) results.next();
                        String dn = sr.getName();
                        //String dn =  ((Context)sr.getObject()).getNameInNamespace();
                        if(dn.indexOf("Renjith") != -1 ) {
                        System.out.println("Distinguised Name : " + dn);
                        //System.out.println("Charg"+dn.toCharArray());
                        userName = dn+test;
                        break;
                   // Renjith - end.
                   //set password is a ldap modify operation
                   ModificationItem[] mods = new ModificationItem[2];
                   String oldQuotedPassword = "\"" + oldPassword + "\"";
                   byte[] oldUnicodePassword = oldQuotedPassword.getBytes("UTF-16LE");
                   String newQuotedPassword = "\"" + newPassword + "\"";
                   byte[] newUnicodePassword = newQuotedPassword.getBytes("UTF-16LE");
                   mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE,
                              new BasicAttribute("unicodePwd", oldUnicodePassword));
                   mods[1] = new ModificationItem(DirContext.ADD_ATTRIBUTE, new BasicAttribute("unicodePwd",
                             newUnicodePassword));
                   System.out.println("Trying to reset Password for: " + userName);
                   // Perform the update
                   ctx.modifyAttributes(userName, mods);
                   System.out.println("Reset Password for: " + userName);     
                   ctx.close();
              catch (NamingException e) {
                   e.printStackTrace();
                   System.out.println("Problem resetting password: " + e);
              catch (UnsupportedEncodingException e) {
                   System.out.println("Problem encoding password: " + e);
    }

    The first error you described "malformed URL" is possibly due to the fact that your JRE version 1.4 does not support the ldaps URL.
    If using 1.4 then you must use the following syntax:env.put(Context.PROVIDER_URL,"ldap://servername:636");If using 1.5, then it supports the syntax:env.put(Context.PROVIDER_URL,"ldaps://servername:636");I can't comment on the other error message you receive, however I am concerned at two things, one is that in your sample code you are using a "null" user name, and secondly, I have no idea what certificate you have installed. I do not recall seeing a Windows CA cert with the extension of .arm. Normally the Root CA exported trust cert has the extension of .cer

  • Can't discover IBM Websphere target with OEM 12c

    Hi, guys!
    I am tryin to config my OEM CC 12c to monitor IBM Websphere 7.0.0.11(win2003R2 x64).
    My OMS with BP1 applied is runnin OEL 6.1(x64), DB 11.2.0.3 - SLES11 SP1(x64) for vmware
    Monitoring agent is runnin on the same server with WAS, i deployed 12.1.0.2.0_oracle.sysman.emas(27/04/2012) plugin on OMS and agent successfully.
    and on first step of discovery process i face an unknown error with no explanation.
    agent log:
    +2012-06-05 13:12:41,578 [31869:A1B8C06B:HTTP Listener-31869 - /emd/main/] INFO - (begin processing requests for OMS@14957@Cloud=>[133888751270001])+
    +2012-06-05 13:12:41,578 [31869:A1B8C06B] INFO - >>> Dispatching request: GetTargetsRequest (host. (include host and TZ)) <<<+
    +2012-06-05 13:12:41,594 [31869:A1B8C06B] INFO - >>> Reporting response: GetTargetsResponse (request id 1) <<<+
    +2012-06-05 13:12:41,594 [31869:A1B8C06B] INFO - (end processing requests for OMS@14957@Cloud=>[133888751270001])+
    +2012-06-05 13:12:41,609 [31869:E0918418:HTTP Listener-31869 - /emd/main/ (DispatchRequests)] INFO - (begin processing requests for OMS@14957@Cloud=>[133888751270002])+
    +2012-06-05 13:12:41,609 [31869:E0918418] INFO - >>> Dispatching request: GetMetricDataRequest (DiscoverNow@host.*0.*1.*1.*6 {pluginId=oracle.sysman.emas, userProps=SERVER_TYPE,websphere_as,HOST,*0.*1.*1.*6,PORT,8880,USERNAME,wsadmin,TRUSTED_KEY_STORE,,AS_DEPLOYMENT_HOME,,VERSION,7.0.x, stdinProps=******, discCategory=WEBLOGIC_8_X, onDemand=true, __gcagent__.isOutputSensitive=true}) <<<+
    +2012-06-05 13:12:41,875 [31869:E0918418] INFO - >>> Reporting response: GetMetricDataResponse (***OUTPUT IS SENSITIVE***) (request id 1) <<<+
    +2012-06-05 13:12:41,875 [31869:E0918418] INFO - (end processing requests for OMS@14957@Cloud=>[133888751270002])+
    Any ideas how can i solve this problem?
    thx in advance, Gleb.
    Edited by: user7104913 on 05.06.2012 2:34

    thx for you reply, Eric
    this is the main problem - i cant understand what i am doing wrong - there are no errors in logs: add target manually --> ibm websphere app serever --> provide all necessary params (server ip, was version, soap port, usr/pass) --> push next and get an error message(literally - "ERROR") over inserted params.
    and yes, agent's targets.xml contains only standart targets:
    <Targets AGENT_TOKEN="57ABE5B075FA49EFCD2F934D8DFB0EDD2E71DB922D7BDFA8A72561F0B9A07D3C">
         <Target TYPE="+host+" NAME="*0.*1.*1.*6" DISPLAY_NAME="*0.*1.*1.*6" ON_HOST="" EMD_URL="https://*0.*1.*1.*6:3872/emd/main/" TIMEZONE_REGION="" IDENTIFIER="TARGET_GUID=607374AD1C0DE71201A9BF1C047CBCE4"/>
         <Target TYPE="+oracle_emd+" NAME="*0.*1.*1.*6:3872" DISPLAY_NAME="*0.*1.*1.*6:3872" ON_HOST="" EMD_URL="*0.*1.*1.*6:3872/emd/main/" TIMEZONE_REGION="" IDENTIFIER="TARGET_GUID=9DE64263B01A068653D7ECBD07C42803"/>
         <Target TYPE="+oracle_home+" NAME="agent12c1_1_* " DISPLAY_NAME="agent12c1_*" ON_HOST="" EMD_URL="https://*0.*1.*1.*6:3872/emd/main/" TIMEZONE_REGION="" IDENTIFIER="TARGET_GUID=29D8E2A2B09883CA7E4C53161F8E9F86">
              <Property NAME="HOME_TYPE" VALUE="O"/>
              <Property NAME="INVENTORY" VALUE="C:\Program Files\Oracle\Inventory"/>
              <Property NAME="INSTALL_LOCATION" VALUE="c:/oracle/agentHome\core\12.1.0.1.0"/>
         </Target>
    </Targets>
    it seems to me that discovery process haven't even been started, wizard just doesn't like params that i inserted but i tried different combinations - same result...
    mb its some kind of bug?
    Edited by: user7104913 on 07.06.2012 0:38

  • Report links in Crystal Reports portlet for IBM Websphere 6.0

    Hi,
    We have some problem when we try to use BusinessObjects XI Release 2 Java Portal Integration Kit for WebSphere (http://ftp1.businessobjects.com/outgoing/products/pik/BusinessObjectsPortlets.zip), that was downloaded from http://www.businessobjects.com/products/downloadcenter/boepik.asp.
    This portlet configured for work with Crystal Reports Server XI Release 2 Service Pack 2.
    The portal server that we use is IBM WebSphere Portal Server 6.0.
    In Portlet interface we can see list of reports on Crystal Reports server, but links for this reports lead us from browser window direct to Crystal Reports Server without Portal links rewriting. It is problem because we have access to Crystal Reports Server only from Portal Server computer. It is not accessible from users computers due to security reasons and network restrictions. Coud you help us and provide some advices how to configure this portlet in way to show reports through Portal?
    Thanks in advance,
    Best Regards
    B.M.

    Here is a list of all the communication types available. You must enter them as a comma seperated list. I personally hard code them in the WEB-INF/portlet.xml and then redeply the BOportlet.war file. If you don't want to do that, you should be able to add them by logging in to the Webspere Portal admin interface.
    Portlet Management>Portlets>Document List>Configure Portlet>Page 2 edit the Communication Types.
    CrystalReport, Analysis, Webi, Word, Excel, Powerpoint, Pdf, Txt, Rtf, MyInfoView, AFDashboardPage, Analytic, FullClient
    I am also attaching a snippet of my portlet.xml where I added the comunication types in there.
    Once these are added, when you run/view a report in the document list portlet, the report will open in the document view portlet.
    Let me know if this helps.
    --Jack
    <portlet-info>
          <title>Document List</title>
        </portlet-info>
        <portlet-preferences>
          <preference>
            <name>Communication Types</name>
        <value>Analysis,Analytic,CrystalReport,FullClient,Excel,MyInfoView,Pdf,Powerpoint,Rtf,Txt,Webi</value>
            <read-only>false</read-only>
          </preference>
          <preference>
            <name>Communication Keyword</name>
            <value>BOPortletCommunicationId</value>
            <read-only>false</read-only>
          </preference>

  • JMX monitoring front Coherence cache running on IBM WebSphere

    I have a question regarding JMX monitoring a Coherence front cache running in a IBM WebSphere v6.1 JVM (1.5).
    My setup is that I have three Coherence nodes (back cache) each running 10 JVMs each. Via JMX all these 30 JVMs are setup to be monitored from one of the 30 JVMs which is configured to be the JmxServer for the other 29 instances. The other 29 JVMs set -Dtangosol.coherence.management.remote=true at startup to indicate that their MBean tree will be managed centrally. This works fine but when I try to extend this to also be able to manage the front cache (running on WebSphere on a separate node in the tier above) by adding the same flag (-Dtangosol.coherence.management.remote=true) it does not appear in the MBean tree as the other 30 Coherence cache (Sun) JVMs do.
    Are there other things I have to consider to get this working? There are no firewalls in between the nodes so that is not the problem. How much of IBM WebSpheres (non-standard) JMX-functionality is required to get this to work?
    /Jonas

    How is the WebSphere node connected to the cluster? Is it using TCMP? Extend?
    Local, Distributed, Replicated, Near, Overflow, External and Optimistic cache statistics appear in the Coherence JMX server. However, near and local caches created on extend nodes do not appear. Therefore the -Dtangosol.coherence.management.remote=true on an Extend client will not register the near or local caches.
    Thanks,
    Everett

Maybe you are looking for

  • How do I connect an Epson stylus SX235W to my iPad

    I can connect to my laptop but cant get my iPod to connect with the Epson stylus SX235W to my iPad any help would be appreciated, I am a very new user with little IT experience

  • Disabling prompts blocks InfoPath publishing

    I have a SharePoint 2010 Enterprise environment with InfoPath 2010.  Using several forms published as content types in several site collections, all working fine. Users are getting prompted Open/Save of documents in libraries (word, excel) - Office W

  • ECC5 compatibility with Oracle 10g

    Hello, I do not have SAP background but I need to know if SAP ECC5 (ERP 2004) is compatible with Oracle 10g? Thanks in advance.

  • Need to view BPM graphically in P7.1

    Hi All,           I have executed a simple BPM where the flow is good.When I click on PE hyperlink to view the flow in graphics,I get the following: Process Overview on Integration Server Only How do I view the BPM flow graphically. Regards, Premjit

  • List physical inventory documents by status

    Need to generate a list of physical inventory documents in Not Counted or Counted status, but only need it at the document level.  (This is non-warehouse managed inventory) MI20 and MI24 show inventory documents for different statuses, but they all l