Generationg .jar in WebSphere 4.0

Hi,
Can anybody let me know whether the following files:
"ibm-ejb-jar-bnd.xmi" and "ibm-ejb-jar-ext.xmi" are automatically generated or developer has to write these in the META-INF directory for some EJB Module before packaging in the .jar file.
sameer

If you are talking about WSAD, it does it for you.

Similar Messages

  • Problem in installing jar on Websphere

    I am using Websphere and I took some sample code from this server and putted home,remote interfaces ,bean class and deployment descriptor from their samples in C:\EJB.This sample code is a calculator .I created jar file by issuing following command from c prompt:
    C:\>jar cf test1.jar EJB\*.class EJB\ejb-jar.xml(My home,remote and bean class files are in C:\EJB and ejb-jar.xml(deployment descriptor) is also in same directory)
    Here is my ejb-jar.xml:(When I try to install test1.jar on websphere then it gives error).
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
    <ejb-jar id="ejb-jar_ID">
    <description>Basic Calculator Stateless Session EJB</description>
    <display-name>Basic Calculator EJB Module</display-name>
    <enterprise-beans>
    <session id="Session_1">
    <description>Basic Calculator to add, subtract, multiply, divide</description>
    <display-name>Basic Calculator Stateless Session</display-name>
    <ejb-name>BasicCalculator</ejb-name>
    <home>BasicCalculatorHome</home>
    <remote>BasicCalculator</remote>
    <ejb-class>BasicCalculatorBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor id="AssemblyDescriptor_1">
    <container-transaction id="MethodTransaction_1">
    <method id="MethodElement_1">
    <ejb-name>BasicCalculator</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Never</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>

    Hi
    What is the error? You need to put your class files in a package. ejb-jar.xml should be located in META-INF.
    Thanks
    VIshal

  • Xpath expression not working with xmlparserv2 10.x jar in websphere application server 8

    Hi,
    I am using xmlparserv2 10.x  jar in websphere application server to transform xml. Due to some unknown reason we are seeing inconsistent result for the xpath expression we used inside the xslt.
    .|following-sibling::* This is the xpath expression we use.
    the meaning of the expression is to union the current node and the following siblings of the current node. But while rendering the page( a servlet) for first two times it gives the expected result. From the third time, it is giving unexpected results. It is missing the first node in the following-sibling::* So it just results in current node and misses the next node and then combine the nodes following the next node.
    For example when executing the above expression on the node A , it should result A B C D. It is returing correctly for first 3 times. From the 4th time it just results  A C D and misses B.
    <root>
         <A />
         <B />
         <C />
         <D />
    </root>
    But it giving results consistently when using xmlparserv2 9.x jar. But it is not 1.5 compliant.
    Pleas help!..
    Thanks,
    SP.

    If you are new to JSF, then I'd try and simplify the environment in which you are working as the first step to achieving a successful outcome.
    JSF 1.2 is a certified and well tested component of WLS, so we know it works. I'm not sure of the effect of all those additional modules you are adding in there -- it appears as if you have gotten a Faces implementation instantiated, but there could be some form of version difference/conflict since it can't find a method its looking for.
    Using Oracle Enterprise Pack for Eclipse (http://www.oracle.com/technology/software/products/oepe/oepe_11115.html) you can build yourself out a pretty simple JSF application to get started from and deploy it to a WLS server. This would remove all the additional libraries you currently have, provide you with a bundled applicaton to deploy and give you a pretty good environment from which you can learn and experiment with JSF.
    -steve-

  • Websphere standalone client invocation

    Hello,
    We are in the process of migrating an EJB application from weblogic(6.1) to webshpere (5.0). We have created the EJB jar for websphere and it is successfully deployed. Since we can not test it connecting from the front end (iPlanet) due to unavailability, we have stand alone client that calls one of the EJB methods. It gets compiled successfully and in runtime we get the following exception.
    java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/GlobalORBExists
         at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:385)
         at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:260)
         at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:166)
         at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
         at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
         at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:137)
         at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:80)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
         at javax.naming.InitialContext.init(InitialContext.java:231)
         at javax.naming.InitialContext.<init>(InitialContext.java:207)
         at TestHello.main(TestHello.java:39)
    Exception in thread "main"
    Client Program:
    import hello.HelloWorldSL;
    import hello.HelloWorldSLHome;
    import java.rmi.RemoteException;
    import java.util.Hashtable;
    import javax.ejb.CreateException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    * Created on Aug 11, 2004
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    * @author tprasad
    * To change the template for this generated type comment go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    public class TestHello {
         public TestHello() {
              super();
              // TODO Auto-generated constructor stub
         public static void main(String[] args) {
            Hashtable env = new Hashtable();
            env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
            env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
            try {
                   Context initialContext = new InitialContext(env);
                   HelloWorldSLHome home = (HelloWorldSLHome) initialContext.lookup("ejb/Hello");          
                   HelloWorldSL rem = home.create();
                   String str = rem.sayHello();
                   System.out.println("From EJB ::: "+ str);
            } catch (RemoteException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
            } catch (CreateException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();          
            } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }Though this may not be a right forum, we desparately need advice.
    Thanks in advance...

    I realize this is a very old topic, but the I have followed the same instructions and the errors still are occurring. The jar mentioned as the solution does not have the class inside it.
    I am doing something very similar. Using a POJO to call an EJB/DataSource, but it is not having any luck finding the classes is nneeds. I am running the code on WSAD 5.1.1 and the server is WAS 5.0.
    javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.Websphere.naming.WsnInitialContextFactory.  Root exception is
    java.lang.ClassNotFoundException: com.ibm.Websphere.naming.WsnInitialContextFactory
         at java.net.URLClassLoader.findClass(URLClassLoader.java:374)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:562)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:438)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:256)
         at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:59)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:661)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:256)
         at javax.naming.InitialContext.init(InitialContext.java:232)
         at javax.naming.InitialContext.<init>(InitialContext.java:208)
         at EJBClient.sentComment(EJBClient.java:59)
         at EJBClient.main(EJBClient.java:95)
    This is my client code and it does not seem to be so difficult.
         Hashtable env = new Hashtable();
         env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.Websphere.naming.WsnInitialContextFactory");
         try{
          InitialContext ctx = new InitialContext(env);
          DataSource ds = (DataSource) ctx.lookup("java:comp/env/OracleDB");
          Connection conn = ds.getConnection("user", "pwd");
          Statement stmt = conn.createStatement();
          String sql = "SELECT tskid, createOper FROM tskreq WHERE createOper='pitest' ORDER BY tskid";
          ResultSet rs = stmt.executeQuery(sql);
          if(rs != null){
               while(rs.next()){
                 String tskID = (String)rs.getString(1);
                 String createOper = (String) rs.getString(2);
                 System.out.println("TaskID: [" +tskID+ "] createOper: ["+createOper+"]");     
               }//end while
          }//end if
         }catch (NamingException ne){
              logger.error("Naming Exception", ne);
         }catch(SQLException sqle){
              logger.error("SQL Exception", sqle);
         }

  • Why can't I get an initial context in websphere!?!

    I am using WebSphere App Dev v.4.0, and I have written a client application which should call methods from an EJB. But I don't seem to be able to get an initial context no matter what I do. Here is a snippet of the app code and the exception it throws: I will be most grateful if someone could help me out. Thanks Ben.
    THE CODE...
    try {          
        System.out.println("about to retrieve initial context.");   
        java.util.Properties p = new java.util.Properties();   
        p.put(Context.PROVIDER_URL, "iiop://localhost:901");   
        p.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");   
        InitialContext initContext = new InitialContext(p);
        System.out.println("initial context has been created.");     
    }catch (Exception e) {        
        e.printStackTrace();
    THE EXCEPTION...
    about to retrieve initial context.
    javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory. Root exception is java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:380)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:257)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:212)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:656)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:199)
    at BeanClient.main(BeanClient.java:18)

    Hi Ben,
    As the gurus told in the earlier replies, it is the problem with Class loading.
    Make Sure that following jar files are in CLASSPATH. (Assuming C:\Websphere is your websphere installation directory)
    J2EE.jar - C:/Websphere/AppServer/lib/J2ee.jar
    Websphere.jar - C:/Websphere/AppServer/lib/websphere.jar
    Ibmorb.jar - C:/Websphere/AppServer/java/jre/lib/ext/ibmorb.jar
    Once you have all these in your CLASSPATH, try running your client application. If you are using Sun JDK you will encounter an error message in the runtime which says like "Service Unavaible.. XXXX Service not found".
    When you encounter this problem make sure that your service named XXXX is running and you are calling it appropriately. To find whether a service with name XXXX is running type
    >>>>dumpnamespace
    at the command prompt. If your service name is listed by dumpnamespace.. your service is running. So there is something wrong with the client code. Proceed to the next step.
    In this tep you can use IBM JDK to fix the error. But that might not be the most suitable solution.
    Here is how you can run Websphere EJB client programs without IBM JDK.
    http://www7b.software.ibm.com/wsdd/downloads/pluggableclient.html
    Follow this link and download the Websphere Pluggable application client and follow the instructions given in Readme to install the pluggable application client.
    Once you finish installing the pluggable application client, you should be able to run with no problems.
    For dwildcat92
    I was also under the impression that we SHOULD use IBM JDK to make the client run. But our integration process demanded that the clients be called from Apache Tomcat. Thats how I was forced to find this link
    http://www7b.software.ibm.com/wsdd/downloads/pluggableclient.html
    Thanks for making me learn guys,
    Ravi.

  • Add Custom Login Class in Websphere environment

    Hi experts,
    We created a Custom Login class of EPM 11.1.2.2, as we use Weblogic added the JAR in 2 directories:
    1) "<MW_HOME>\EPMSystem11R1\common\jlib\11.1.2.0"
    2) "<MW_HOME>\user_projects\domains\EPMSystem\lib"
    Now we need test this "Custom Login" in Websphere 7.0, but in Websphere environment does not has the second directory.
    Somebody know where we add the jar in Websphere environment?
    Thanks

    Hyperion11.1.2.2. Workspace API
    I am very new to Hyperion11.1.2.2. After studying few APIs, I
    found Workspace API can be used to automate some task, using
    custom java program. I am able to use login.java (sample) and
    login to the server. Can someone please redirect me to API
    documentation, so I can understand each class, function and
    interface of the API and use them in a java program.
    ths Regards
    Edited by: 1009228 on 2013-5-31 下午11:21

  • Com.sun.tools.javac.Main: method compile errors

    I had a working web project the other day, and something happened that caused every page to start throwing this error:
    # javax.servlet.ServletException: com.sun.tools.javac.Main: method compile([Ljava/lang/String;Ljava/io/PrintWriter;)I not found
    # at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:779)
    # at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    # at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    # at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    # at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    # at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    # at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:978)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    # at com.mayco.mvc.MVCServlet.processRequest(MVCServlet.java:426)
    # at com.mayco.ldap.MayServlet.service(MayServlet.java:415)
    # at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    # at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    # at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    # at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    # at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    # at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    # at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
    # at com.mayco.cy.filter.AuthenticateFilter.doFilter(AuthenticateFilter.java:167)
    # at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
    # at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    # at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    # at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    # at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    # at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    # at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    # at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    # at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    # at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    # at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    # at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    I tried setting up a clean environment (server, EAR, web project), but haven't been able to re-solve the problem I had with the original project yet.  If I could get a starting point to look for how to solve this type of error it would be greatly appreciated!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I checked my JDK compliance (1.4) and the installed JREs (Standard VM; WebSphere v5.1 EE JRE; C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51_stub\java\jre)
    I did notice that it was using the JRE System LIbrary [WebSphere v5.1 JRE] and I changed it to the WebSphere v5.1 EE JRE like I think it should have been...
    and the web server startup begins with:
    *** Starting the server ***
    ************ Start Display Current Environment ************
    WebSphere Platform 5.1 [BASE 5.1.0.3 cf30412.02] [JDK 1.4.1 b0344.02] running with process name localhost\localhost\server1 and process id 2692
    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 = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
    user.install.root = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51
    Java Home = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51\java\jre
    ws.ext.dirs = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/classes;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/ext;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/web/help;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime;C:/Program Files/IBM/SQLLIB/java/db2java.zip;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2/runtime/worf.jar
    Classpath = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/properties;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/bootstrap.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/j2ee.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/lmproxy.jar;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/lib/urlprotocols.jar;C:\WebSphere\properties;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\bcprov-jdk14-139.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\config.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\spi4jStub_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES100J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES110J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES120J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XEES200J.jar;C:\spi4j2.5.4_J2ee1.4\clientLib\XTCP211.jar;C:\spi4j2.5.4_J2ee1.4\Demo\log4j-1.2.8.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\spi4jCore_2.5.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\axis-1.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xmlParserAPIs-2_2_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jaxrpc.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\wsdl4j.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fsgWsif1.1.jar;C:\spi4j2.5.4_J2ee1.4\Demo\commons-logging.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\tools.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-pool-1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\saaj.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-beanutils-core.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-collections-3.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-discovery.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\commons-lang-2.1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\connector.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\FEDRWSCHECKSTATUSAxisInfo.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\fscontext.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\IFSClassLoader1.2.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\j2ee1.4.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jca.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\jta.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\mail.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\providerutil.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\qname.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\soaprmi-1_1.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xalan.jar;C:\spi4j2.5.4_J2ee1.4\coreLib\xercesImpl-2_2_1.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wteServers.jar;C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.common_5.1.1.1/runtime/wasToolsCommon.jar
    Java Library path = C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v51/java/jre/bin;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;.;C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\eclipse\jre\bin;C:\oracle\product\10.2.0\client_2\bin;C:\oracle\product\10.2.0\client_1\bin;Y:\oracle\ora92\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\IBM\SDP70\jdk\bin
    ************* End Display Current Environment *************

  • Error starting application in WAS 5.0.2.9

    Hi, I been having this problem starting an application server for a while. I verify the SOAP port, everithing.
    For a little explanation, there are 2 websphere (in different servers, both are aix 4.3.3) all WAS 5.0.2.9 and i create a node, to use only one admin console.
    The error when i try to start the applicacion server is this:
    ************ Start Display Current Environment ************
    WebSphere Platform 5.0 [JDK 1.3.1 ${build.level}] [BASE 5.0.2.9 cf90448.01] [ND 5.0.2.9 cf90448.01]  running with process name appsrv1Network\appsrv2\edtop and process id 62272
    Host Operating System is AIX, version 4.3
    Java version = J2RE 1.3.1 IBM AIX build ca131-20030618 (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
    was.install.root = /usr/WebSphere/AppServer5
    user.install.root = /usr/WebSphere/AppServer5
    Java Home = /usr/WebSphere/AppServer5/java/jre
    ws.ext.dirs = /usr/WebSphere/AppServer5/java/lib:/usr/WebSphere/AppServer5/classes:/usr/WebSphere/AppServer5/classes:/usr/WebSphere/AppServer5/lib:/usr/WebSphere/AppServer5/lib/ext:/usr/WebSphere/AppServer5/web/help:/usr/WebSphere/AppServer5/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
    Classpath = /usr/WebSphere/AppServer5/properties:/usr/WebSphere/AppServer5/properties:/usr/WebSphere/AppServer5/lib/bootstrap.jar:/usr/WebSphere/AppServer5/lib/j2ee.jar:/usr/WebSphere/AppServer5/lib/lmproxy.jar:/usr/WebSphere/AppServer5/lib/urlprotocols.jar
    Java Library path = /usr/WebSphere/AppServer5/java/jre/bin:/usr/WebSphere/AppServer5/java/jre/bin/classic:/usr/WebSphere/AppServer5/bin:/usr/mqm/java/lib:/usr/opt/wemps/lib:$LIBPATH:/usr/netscape/server4/lib::/usr/lib
    ************* End Display Current Environment *************
    [11/8/05 8:47:53:059 ART] 119a3081 ManagerAdmin  I TRAS0017I: The startup trace state is *=all=disabled.
    [11/8/05 8:47:57:991 ART] 119a3081 AdminInitiali A ADMN0015I: AdminService initialized
    [11/8/05 8:48:00:302 ART] 119a3081 PMIImpl       A PMI0001A: PMI is enabled
    [11/8/05 8:48:02:330 ART] 119a3081 Configuration A SECJ0215I: Successfully set JAAS login provider configuration class to com.ibm.ws.security.auth.login.Configuration.
    [11/8/05 8:48:02:587 ART] 119a3081 SecurityDM    I SECJ0231I: The Security component's FFDC Diagnostic Module com.ibm.ws.security.core.SecurityDM registered successfully: true.
    [11/8/05 8:48:02:942 ART] 119a3081 SecurityCompo I SECJ0309I: Java 2 Security is disabled.
    [11/8/05 8:48:03:295 ART] 119a3081 SecurityCompo I SECJ0212I: WCCM JAAS configuration information successfully pushed to login provider class.
    [11/8/05 8:48:03:340 ART] 119a3081 SecurityCompo I SECJ0240I: Security service initialization completed successfully
    [11/8/05 8:48:03:347 ART] 119a3081 JMSRegistrati A MSGS0601I: WebSphere Embedded Messaging has not been installed
    [11/8/05 8:48:09:856 ART] 119a3081 SASRas        A JSAS0001I: Security configuration initialized.
    [11/8/05 8:48:14:218 ART] 119a3081 SASRas        A JSAS0002I: Authentication protocol: CSIV2/IBM
    [11/8/05 8:48:14:231 ART] 119a3081 SASRas        A JSAS0003I: Authentication mechanism: LTPA
    [11/8/05 8:48:14:243 ART] 119a3081 SASRas        A JSAS0004I: Principal name: dcsrv01:389/wasuser
    [11/8/05 8:48:14:468 ART] 119a3081 SASRas        A JSAS0005I: SecurityCurrent registered.
    [11/8/05 8:48:14:483 ART] 119a3081 SASRas        A JSAS0006I: Security connection interceptor initialized.
    [11/8/05 8:48:14:825 ART] 119a3081 SASRas        A JSAS0007I: Client request interceptor registered.
    [11/8/05 8:48:15:526 ART] 119a3081 SASRas        A JSAS0008I: Server request interceptor registered.
    [11/8/05 8:48:15:715 ART] 119a3081 SASRas        A JSAS0009I: IOR interceptor registered.
    [11/8/05 8:48:47:234 ART] 119a3081 ResourceMgrIm I WSVR0049I: Binding PlantsByWebSphere Mail Session as mail/PlantsByWebSphere
    [11/8/05 8:48:49:890 ART] 119a3081 ResourceMgrIm I WSVR0049I: Binding PrendConnection as jdbc/PrendConnection
    [11/8/05 8:48:54:320 ART] 119a3081 CacheServiceI I DYNA0048I: WebSphere Dynamic Cache initialized successfully.
    [11/8/05 8:48:58:625 ART] 119a3081 UserRegistryI A SECJ0136I: Custom Registry:com.ibm.ws.security.registry.ldap.LdapRegistryImpl has been initialized
    [11/8/05 8:49:13:230 ART] 119a3081 TraceNLS      u No message text associated with key Unable.to.create.server.socket in bundle com.ibm.ejs.resources.seriousMessages
    [11/8/05 8:49:13:098 ART] 119a3081 SSLServerSock E Unable to create server socket
    [11/8/05 8:49:13:926 ART] 119a3081 JMXSoapAdapte W ADMC0015W: SOAP connector failed to start with exception: The socket name is already in use.
    [11/8/05 8:49:21:037 ART] 119a3081 WsServer      E WSVR0003E: Server edtop failed to start
    com.ibm.ws.exception.RuntimeError:
            at com.ibm.ws.security.core.ServerSecurityComponentImpl.start(ServerSecurityComponentImpl.java:164)
            at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java(Compiled Code))
            at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
            at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:134)
            at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
            at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
            at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
            at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
            at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    ---- Begin backtrace for nested exception
    java.lang.RuntimeException:
            at com.ibm.ws.management.component.JMXConnectors.stateChanged(JMXConnectors.java:1224)
            at com.ibm.ws.security.core.SecurityComponentImpl.fireStartedEvent(SecurityComponentImpl.java:865)
            at com.ibm.ws.security.core.SecurityComponentImpl.startSecurity(SecurityComponentImpl.java:610)
            at com.ibm.ws.security.core.ServerSecurityComponentImpl.start(ServerSecurityComponentImpl.java:159)
            at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java(Compiled Code))
            at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
            at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:134)
            at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:543)
            at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:418)
            at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
            at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
            at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    [11/8/05 8:49:21:050 ART] 119a3081 WsServer      E WSVR0009E: Error occurred during startupThanks for the help

    This error is caused by $(node.name) variables in the application server descriptors of the nodes not being replaced with the node name.
    Simply open the server.xml file for each node and replace $(node.name) with the specific node name of each node. This can also be done at the dmgr level for each application server so that it syncs in the future.
    See this topic for a similar error involving security.xml:
    http://www-1.ibm.com/support/docview.wss?uid=swg21221268

  • Eclipse as a development environment with Jakarta Tomcat

    Hello:
    I am setting up the new development environment for my application (project). Below are the components involved::
    �     Eclipse 3.1
    �     myEclipse - EnterpriseWorkbenchInstaller_4.0GA_E3.1
    �     jakarta-tomcat-5.0.28 (Application Server)
    �     Sysdeo Eclipse Tomcat Launcher plugin - tomcatPluginV31beta
    �     SDK 1.4.2_08
    �     Microsoft XP sp2 operating system
    I have no issue with creation of project structure in eclipse IDE, compilation, and deployment, but there are some exception upon running the application.
    My project folder structure as follows:
    MyApplication/
    src/
    Conf/
    Web/
    classes
    taglib
    lib
    web.xml
    �     my application has few dependent projects, therefore I copied all the dependent projects final compiled classes (jars) to �lib� folder.
    �     I set all necessary classpath according to tomcat documentation.
    �     I created MyApplication.xml file under D:\jakarta-tomcat-5.0.28\conf\Catalina\localhost\ folder with the below context
    <Context path="/MyApplication " docBase="D:/xx/xxx/dev/src/ MyApplication/web" debug="0" reloadable="true" />
    �     I don�t get any exception during compilation and deployment process.
    �     I would greatly appreciate if you could give me a tips!!!!!!!!!!!!!!!!!!!!!!
    Error as follows:
    2005-10-10 17:31:45 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2005-10-10 17:31:47 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2005-10-10 17:31:47 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2005-10-10 17:31:47 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2005-10-10 17:31:47 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2005-10-10 17:32:27 StandardContext[manager]HTMLManager: init: Associated with Deployer 'localhost'
    2005-10-10 17:32:27 StandardContext[manager]HTMLManager: init: Global resources are available
    2005-10-10 17:32:27 StandardContext[manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
    2005-10-10 17:32:35 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:163)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:122)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)
         at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:190)
         at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
         at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
         at org.apache.jsp.default_jsp._jspService(default_jsp.java:101)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    path setting as follows:
    %JAVA_HOME%\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Borland\AppServer\bin;C:\Program Files\CA\PEC\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\ENGLISH;C:\Program Files\Attachmate\E!E2K\;C:\Program Files\CA\AllFusion Harvest Change Manager;D:\jwsdp-1.1\jaxb-1.0\bin;D:\jwsdp-1.1\jwsdp-shared\bin;C:\Borland\classes12.zip;C:\Program Files\UltraEdit;D:\jakarta-tomcat-5.0.28\webapps\cst\WEB-INF\classes;D:\EPS\EB_CST_v3.7.2\dev\src\cst;%PATH%
    Classpath setting as follows:
    .;%third_pty%\xerces.jar;D:\EPS\EB_CST_v3.7.2\dev\src\cst;D:\jakarta-tomcat-5.0.28\webapps\cst;D:\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar;D:\jakarta-tomcat-5.0.28\common\lib\jsp-api.jar;D:\jwsdp-1.1\jaxb-1.0\lib\jaxb-api.jar;D:\jwsdp-1.1\jaxb-1.0\lib\jaxb-ri.jar;%third_pty%\ant.jar;D:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed\dom.jar;D:\jwsdp-1.1\jwsdp-shared\lib\jax-qname.jar;D:\jwsdp-1.1\jaxb-1.0\lib\jaxb-libs.jar;D:\jwsdp-1.1\jaxb-1.0\lib\jaxb-xjc.jar;D:\jwsdp-1.1\jaxp-1.2.2\lib\jaxp-api.jar;D:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed\sax.jar;D:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed\xercesImpl.jar;%third_pty%\activation.jar;%third_pty%\ant-optional.jar;%third_pty%\j2ee.jar;%third_pty%\jakarta-regexp.jar;%third_pty%\jaxp.jar;%third_pty%\jcert.jar;%third_pty%\jnet.jar;%third_pty%\jsse.jar;%third_pty%\xalan.jar;C:\MSJDBSLib\msbase.jar;C:\MSJDBSLib\mssqlserver.jar;C:\MSJDBSLib\msutil.jar;
    Other IDE setting:
    As per tomcat documentation.

    Hello:
    I overcame the above issue by changing index.html to index.jsp, but now i am facing another issue as shown below:
    On top of the above change i too included j2ee.jar (from websphere) in the classpath to overcome the below issue, but even then i am getting the same error.
    Error as follows:
    javax.servlet.ServletException: Error instantiating servlet class com.metavante.cst.control.web.LoginMainServlet
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:996)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:214)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    ----- Root Cause -----
    java.lang.NoClassDefFoundError: javax/ejb/EJBObject
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
         at java.lang.Class.getConstructor0(Class.java:1930)
         at java.lang.Class.newInstance0(Class.java:278)
         at java.lang.Class.newInstance(Class.java:261)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:987)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:214)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)

  • Linux Environment : Can't open lib '/opt/oracle/instantclient/libsqora.so.1

    Hi All,
    We are getting below error while one of the ODBC connection try to connect to the Database.
    Linux Server is Red Hat 64 bit environment.
    [6/1/07 14:29:55:315 CDT] 00000034 SystemOut O UserId:APCTEVAL ServiceName:NbaContractEvaluationBP DEBUG [QuartzScheduler_Worker-51] (com.csc.dip.jvpms.core.JvpmsLog4j:debug:?) - compute P_Result => ReturnCode: 1 Message: [unixODBC][Driver Manager]Can't open lib '/opt/oracle/instantclient/libsqora.so.10.1' : /opt/oracle/instantclient/libsqora.so.10.1: cannot open shared object file: No such file or directory RefField: sue
    Here is the current set of things that we verified
    1. The .bash_profile for root has the right stuff in it
    export ORACLE_HOME=/opt/oracle/instantclient
    export PATH=$ORACLE_HOME:$PATH
    export LD_LIBRARY_PATH=/opt/nba/bin:$ORACLE_HOME:$LD_LIBRARY_PATH
    export TNS_ADMIN=$ORACLE_HOME
    2. We verified that the correct version of the Oracle ODBC drivers are installed
    -r--r--r-- 1 oracle dba 1545954 Dec 20 09:35 ojdbc14.jar
    -rwxr-xr-x 1 oracle dba 137905 Dec 20 09:35 libocijdbc10.so
    -rwxr-xr-x 1 oracle dba 72456247 Dec 20 09:35 libociei.so
    -rwxr-xr-x 1 oracle dba 1664148 Dec 20 09:35 libocci.so.10.1
    -rwxr-xr-x 1 oracle dba 3808761 Dec 20 09:35 libnnz10.so
    -rwxr-xr-x 1 oracle dba 20870419 Dec 20 09:35 libclntsh.so.10.1
    -rwxr-xr-x 1 oracle dba 66545 Dec 20 09:35 genezi
    -r--r--r-- 1 oracle dba 1600090 Dec 20 09:35 classes12.jar
    -rwxr-xr-x 1 oracle dba 7741 Dec 20 09:35 sqlplus
    -r--r--r-- 1 oracle dba 3457 Dec 20 09:35 odbc_update_ini.sh
    -r-xr-xr-x 1 oracle dba 58416 Dec 20 09:35 ODBCRelnotesUS.htm
    -r-xr-xr-x 1 oracle dba 91881 Dec 20 09:35 ODBCRelnotesJA.htm
    -r--r--r-- 1 oracle dba 21548 Dec 20 09:35 ODBC_IC_Readme_Linux.html
    -rwxr-xr-x 1 oracle dba 859868 Dec 20 09:35 libsqora.so.10.1
    -rwxr-xr-x 1 oracle dba 992929 Dec 20 09:35 libsqlplus.so
    -rwxr-xr-x 1 oracle dba 1435529 Dec 20 09:35 libsqlplusic.so
    -r--r--r-- 1 oracle dba 1525 Dec 20 09:35 glogin.sql
    -rw-r----- 1 oracle dba 475 May 31 16:06 sqlnet.ora
    -rw-r--r-- 1 oracle dba 385 May 31 16:06 ldap.ora
    in the /opt/oracle/instantclient directory
    3. We verified the the odbc.ini and the odbcinst.ini..they match our dev files
    4. We verified that the VPMS so are the same version
    -rwxrwxr-x 1 nbaadmin nbaadmin 9333 Feb 13 07:57 libjvpms.so
    -rw-r--r-- 1 nbaadmin nbaadmin 1339 Feb 13 07:57 nbaSetupCmdLine.sh
    -rw-r--r-- 1 nbaadmin nbaadmin 852 Feb 13 07:57 nbaLaunchClient.sh
    -rw-r--r-- 1 nbaadmin nbaadmin 327 Feb 13 07:57 nbaAdministrativeConsole.sh
    -rwxrwxr-x 1 nbaadmin nbaadmin 265657 Feb 13 07:57 libvpms.so
    -rwxrwxrwx 1 nbaadmin nbaadmin 594 Feb 13 12:58 odbcinst.ini
    -rwxrwxrwx 1 nbaadmin nbaadmin 874 Feb 13 12:58
    odbc.ini
    5. We also verifed that the directories were showing up in the JVM start up log to verify WAS startup
    ************ Start Display Current Environment ************
    WebSphere Platform 6.0 [ND 6.0.2.17 cf170648.10] running with process name SyststNBACell01\SyststNBANode01\sysNBANewBusiness1 and process id 4921
    Host Operating System is Linux, version 2.6.9-42.0.3.ELsmp
    Java version = J2RE 1.4.2 IBM build cxia32142-20060421 (SR5) (JIT enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
    was.install.root = /opt/WebSphere/AppServer60
    user.install.root = /opt/WebSphere/AppServer60/profiles/SyststNBANode01Profile
    Java Home = /opt/WebSphere/AppServer60/java/jre
    ws.ext.dirs = /opt/WebSphere/AppServer60/java/lib:/opt/WebSphere/AppServer60/profiles/SyststNBANode01Profile/classes:/opt/WebSphere/AppServer60/classes:/opt/WebSphere/AppServer60/lib:/opt/WebSphere/AppServer60/installedChannels:/opt/WebSphere/AppServer60/lib/ext:/opt/WebSphere/AppServer60/web/help:/opt/WebSphere/AppServer60/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime:/opt/nba/runtimeJars
    Classpath = /opt/WebSphere/AppServer60/profiles/SyststNBANode01Profile/properties:/opt/WebSphere/AppServer60/properties:/opt/WebSphere/AppServer60/lib/bootstrap.jar:/opt/WebSphere/AppServer60/lib/j2ee.jar:/opt/WebSphere/AppServer60/lib/lmproxy.jar:/opt/WebSphere/AppServer60/lib/urlprotocols.jar:/opt/nba/configuration/config
    Java Library path = /opt/WebSphere/AppServer60/java/jre/bin:/opt/WebSphere/AppServer60/java/jre/bin/classic:/opt/WebSphere/AppServer60/java/jre/bin:/opt/WebSphere/AppServer60/bin:/opt/mqm/java/lib:/opt/wemps/lib:/opt/nba/bin:/opt/oracle/instantclient:/usr/lib
    ************* End Display Current Environment *************
    But are still getting the following error
    [6/1/07 14:29:55:315 CDT] 00000034 SystemOut O UserId:APCTEVAL ServiceName:NbaContractEvaluationBP DEBUG [QuartzScheduler_Worker-51] (com.csc.dip.jvpms.core.JvpmsLog4j:debug:?) - compute P_Result => ReturnCode: 1 Message: [unixODBC][Driver Manager]Can't open lib '/opt/oracle/instantclient/libsqora.so.10.1' : /opt/oracle/instantclient/libsqora.so.10.1: cannot open shared object file: No such file or directory RefField: sue
    Thanks in advance
    Mitesh

    Your LD_LIBRARY_PATH is wrong, libraries are in $ORACLE_HOME/lib, not $ORACLE_HOME itself. The same for $TNS_ADMIN, normally net configuration files are in $ORACLE_HOME/network/admin.
    export LD_LIBRARY_PATH=/opt/nba/bin:$ORACLE_HOME/lib
    Maybe this note on metalink gives further help:
    How to Setup and Verify Setup of Oracle ODBC Driver on Linux
    Doc ID:404041.1
    Werner

  • NoClassDefFoundError WsnInitialContextFactory com/ibm/ejs/ras/Tr

    This is a very well known question.
    I try to call datasource from a POJO.
    My code is:
    Hashtable properties = new Hashtable();
    properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    properties.put(Context.PROVIDER_URL, "iiop://localhost:myPortNumber);
    Context context = new InitialContext(properties);
    DataSource ds = (DataSource) context.lookup("jdbc/myDS");
    Line: Context context = new InitialContext(properties); throws Exception as shown below:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/ejs/ras/Tr at com.ibm.websphere.naming.WsnInitialContextFactory.<clinit>(WsnInitialContextFactory.java:68).null(Unknown Source)
    I have following jar files in build path of the project in following sequence:
    idl.jar, iwsorb.jar,j2ee.jar,naming.jar, namingclient.jar,rt.jar, additinal jars in WebSphere v5.1JRE.
    Do I need additional jar files?
    There is no good documentation on the required jar files.

    Hello ,my friend.Thank you for your kindness to see my question
    This is my log on my websphere console
    I want deploy my project from a weblogic to a websphere , Now I try to use Jbuilder and websphere to deploy my code ,but I met a lot of question ,Can you help me? Thank you
    Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.ejs.ras.Tr
         at com.ibm.ws.util.ImplFactory.<clinit>(ImplFactory.java:77)
         at java.lang.J9VMInternals.initializeImpl(Native Method)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
         at com.ibm.ws.runtime.WsServer.<clinit>(WsServer.java:51)
         at java.lang.J9VMInternals.initializeImpl(Native Method)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:615)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:263)

  • Help : javax.ejb.EJBException: nested exception is: SQL Exception: Database

    Hello,
    I found a write up of error connecting to DB2 from SUSE linux
    i am using websphere admin console , jdbc db2 universal driver to
    connect to a remote db (DB2).
    the test connection works...but the application gives
    the above error
    jdbc test connection trace
    [ibm][db2][jcc] BEGIN TRACE_DRIVER_CONFIGURATION
    [ibm][db2][jcc] Driver: IBM DB2 JDBC Universal Driver Architecture 1.1.67
    [ibm][db2][jcc] Compatible JRE versions: { 1.3, 1.4 }
    [ibm][db2][jcc] Range checking enabled: true
    [ibm][db2][jcc] Bug check level: 0xff
    [ibm][db2][jcc] Trace level: 0xffffffff
    [ibm][db2][jcc] Default fetch size: 64
    [ibm][db2][jcc] Default isolation: 2
    [ibm][db2][jcc] Collect performance statistics: false
    [ibm][db2][jcc] No security manager detected.
    [ibm][db2][jcc] Detected local client host: SUSE.SYSDEV/127.0.0.2
    [ibm][db2][jcc] Access to package sun.io is permitted by security manager.
    [ibm][db2][jcc] JDBC 1 system property jdbc.drivers = null
    [ibm][db2][jcc] Java Runtime Environment version 1.4.1
    [ibm][db2][jcc] Java Runtime Environment vendor = IBM Corporation
    [ibm][db2][jcc] Java vendor URL = http://www.ibm.com/
    [ibm][db2][jcc] Java installation directory =
    /opt/WebSphere/AppServer/java/bin/../jre
    [ibm][db2][jcc] Java Virtual Machine specification version = 1.0
    [ibm][db2][jcc] Java Virtual Machine specification vendor = Sun
    Microsystems Inc.
    [ibm][db2][jcc] Java Virtual Machine specification name = Java Virtual
    Machine Specification
    [ibm][db2][jcc] Java Virtual Machine implementation version = 1.4.1
    [ibm][db2][jcc] Java Virtual Machine implementation vendor = IBM Corporation
    [ibm][db2][jcc] Java Virtual Machine implementation name = Classic VM
    [ibm][db2][jcc] Java Runtime Environment specification version = 1.4
    [ibm][db2][jcc] Java Runtime Environment specification vendor = Sun
    Microsystems Inc.
    [ibm][db2][jcc] Java Runtime Environment specification name = Java
    Platform API Specification
    [ibm][db2][jcc] Java class format version number = 48.0
    [ibm][db2][jcc] Java class path =
    /opt/WebSphere/AppServer/properties:/opt/WebSphere/AppServer/properties:/opt/WebSphere/AppServer/lib/bootstrap.jar:/opt/WebSphere/AppServer/lib/j2ee.jar:/opt/WebSphere/AppServer/lib/lmproxy.jar:/opt/WebSphere/AppServer/lib/urlprotocols.jar:/opt/WebSphere/AppServer/
    [ibm][db2][jcc] Java native library path =
    /opt/WebSphere/AppServer/java/bin/../jre/bin:/opt/WebSphere/AppServer/java/jre/bin/classic:/opt/WebSphere/AppServer/java/jre/bin:/opt/WebSphere/AppServer/bin:/opt/mqm/java/lib:/opt/wemps/lib:/usr/lib
    [ibm][db2][jcc] Path of extension directory or directories =
    /opt/WebSphere/AppServer/java/bin/../jre/lib/ext
    [ibm][db2][jcc] Operating system name = Linux
    [ibm][db2][jcc] Operating system architecture = x86
    [ibm][db2][jcc] Operating system version = 2.4.19-64GB-SMP
    [ibm][db2][jcc] File separator ("/" on UNIX) = /
    [ibm][db2][jcc] Path separator (":" on UNIX) = :
    [ibm][db2][jcc] User's account name = root
    [ibm][db2][jcc] User's home directory = /root
    [ibm][db2][jcc] User's current working directory = /opt/WebSphere/AppServer
    [ibm][db2][jcc] END TRACE_DRIVER_CONFIGURATION
    **************************************imp ***********************
    [ibm][db2][jcc] BEGIN TRACE_CONNECTS
    [ibm][db2][jcc] Attempting connection to nnn.nnn.nnn.nnn:50000/was40
    [ibm][db2][jcc] Using properties: { dataSourceName=null,
    password=<escaped>, portNumber=50000, fullyMaterializeLobData=true,
    securityMechanism=3, cliSchema=dbo, resultSetHoldability=2,
    serverName=167.16.183.11, currentPackageSet=null, loginTimeout=0,
    planName=null, traceFile=/opt/WebSphere/AppServer/logs/server1/trace,
    kerberosServerPrincipal=null,
    retrieveMessagesFromServerOnGetMessage=true, currentSchema=dbo,
    driverType=4, description=null, readOnly=false, deferPrepares=true,
    databaseName=was40, traceLevel=-1, user=db2inst1 }
    [ibm][db2][jcc] END TRACE_CONNECTS
    *************************************imp *******************
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: EXCSAT (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0072D0410001006C 10410027115E8482
    .r.A...l.A.'.^.. ..}....%.....;db
    [ibm][db2][jcc][t4] 0010 F2918383E28599A5 9385A34BC5958789
    ...........K.... 2jccServlet.Engi
    [ibm][db2][jcc][t4] 0020 95854BE3998195A2 979699A3A2407A40
    ..K..........@z@ ne.Transports :
    [ibm][db2][jcc][t4] 0030 F2000F116DE2E4E2 C54BE2E8E2C4C5E5
    ....m....K...... 2..._SUSE.SYSDEV
    [ibm][db2][jcc][t4] 0040 000E115AC4C2F2D1 C3C340F14BF00018
    [email protected]... ...!DB2JCC 1.0..
    [ibm][db2][jcc][t4] 0050 1404140300032407 0007240F00071440
    ......$...$....@ ...............
    [ibm][db2][jcc][t4] 0060 000614740005000C 1147D8C4C2F261D1
    ...t.....G....a. ..........QDB2/J
    [ibm][db2][jcc][t4] 0070 E5D40026D0010002 0020106D000611A2
    ...&..... .m.... VM..}......_...s
    [ibm][db2][jcc][t4] 0080 000300162110A681 A2F4F04040404040
    ....!......@@@@@ ......was40
    [ibm][db2][jcc][t4] 0090 4040404040404040
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: EXCSATRD (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0066D04300010060 1443001C115E8482
    .f.C...`.C...^.. ..}....-.....;db
    [ibm][db2][jcc][t4] 0010 F28995A2A3F18482 F281878595A3F0F0
    ................ 2inst1db2agent00
    [ibm][db2][jcc][t4] 0020 F0F1F9C6F3F60018 1404140300032407
    ..............$. 019F36..........
    [ibm][db2][jcc][t4] 0030 0005240F00071440 000614740005000D
    [email protected].... ....... ........
    [ibm][db2][jcc][t4] 0040 1147D8C4C2F261F6 F0F0F0000C116D84
    .G....a.......m. ..QDB2/6000..._d
    [ibm][db2][jcc][t4] 0050 82F28995A2A3F100 0F115AC4C2F240E4
    ..........Z...@. b2inst1...!DB2 U
    [ibm][db2][jcc][t4] 0060 C4C240F74BF20010 D0030002000A14AC
    [email protected]........... DB 7.2..}.......
    [ibm][db2][jcc][t4] 0070 000611A20003 ......
    ...s..
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: SECCHK (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 003ED04100010038 106E000611A20003
    .>.A...8.n...... ..}......>...s..
    [ibm][db2][jcc][t4] 0010 00162110A681A2F4 F040404040404040
    ..!......@@@@@@@ ....was40
    [ibm][db2][jcc][t4] 0020 404040404040000C 11A08482F28995A2
    @@@@@@.......... ....db2ins
    [ibm][db2][jcc][t4] 0030 A3F1000C11A18482 F28995A2A3F100A8
    ................ t1...~db2inst1.y
    [ibm][db2][jcc][t4] 0040 D001000200A22001 00162110A681A2F4 ......
    ...!..... }....s......was4
    [ibm][db2][jcc][t4] 0050 F040404040404040 4040404040400006
    .@@@@@@@@@@@@@.. 0 ..
    [ibm][db2][jcc][t4] 0060 210F2407000C112E D1C3C3F0F1F0F0F0
    !.$............. ........JCC01000
    [ibm][db2][jcc][t4] 0070 003C210437D1C3C3 F0F1F0F0F0D1E5D4
    .<!.7........... .....JCC01000JVM
    [ibm][db2][jcc][t4] 0080 4040404040404040 4040404040404084
    @@@@@@@@@@@@@@@. d
    [ibm][db2][jcc][t4] 0090 82F2918383E28599 A59385A34BC59587
    ............K... b2jccServlet.Eng
    [ibm][db2][jcc][t4] 00A0 8995858482F28995 A2A3F100000D002F
    .............../ inedb2inst1.....
    [ibm][db2][jcc][t4] 00B0 D8E3C4E2D8D3C1E2 C300172135C1C3F1
    ...........!5... QTDSQLASC....AC1
    [ibm][db2][jcc][t4] 00C0 C6F1F2F7C54BD7C3 F1F200FD9591649F
    .....K........d. F127E.PC12..nj..
    [ibm][db2][jcc][t4] 00D0 001600350006119C 04B80006119D04B0
    ...5............ ................
    [ibm][db2][jcc][t4] 00E0 0006119E04B8 ......
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: SECCHKRM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0015D0420001000F 1219000611490000
    ...B.........I.. ..}.............
    [ibm][db2][jcc][t4] 0010 000511A4000033D0 020002002D220100
    ......3.....-".. ...u...}........
    [ibm][db2][jcc][t4] 0020 0611490000000C11 2EE2D8D3F0F7F0F2
    ..I............. .........SQL0702
    [ibm][db2][jcc][t4] 0030 F3000D002FD8E3C4 E2D8D3C1E2C3000A
    ..../........... 3....QTDSQLASC..
    [ibm][db2][jcc][t4] 0040 00350006119C0333
    .5.....3 ........
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] setDB2CurrentSchema () called
    [ibm][db2][jcc][Connection@887519a] BEGIN TRACE_CONNECTS
    [ibm][db2][jcc][Connection@887519a] Successfully connected to server
    jdbc:db2://167.16.183.11:50000/was40
    [ibm][db2][jcc][Connection@887519a] User: db2inst1
    [ibm][db2][jcc][Connection@887519a] Database product name: DB2/6000
    [ibm][db2][jcc][Connection@887519a] Database product version: SQL07023
    [ibm][db2][jcc][Connection@887519a] Driver name: IBM DB2 JDBC
    Universal Driver Architecture
    [ibm][db2][jcc][Connection@887519a] Driver version: 1.1.67
    [ibm][db2][jcc][Connection@887519a] END TRACE_CONNECTS
    [ibm][db2][jcc][t4] DRDA manager levels: { SQLAM=5, AGENT=3,
    CMNTCPIP=5, RDB=7, SECMGR=6 }
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.getConnection () returned a
    logical connection
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] getAutoCommit () returned true
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] isClosed () returned false
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.recycleConnection() ()
    called
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.recycleConnection ()
    returned void
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.close() (close the
    phycical connection) called
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: RDBCMM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 000AD00100010004 200E
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: ENDUOWRM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0015D0520001000F 220C000611490004
    ...R...."....I.. ..}.............
    [ibm][db2][jcc][t4] 0010 0005211501000BD0 03000100052408FF
    ..!..........$.. .......}........
    [ibm][db2][jcc][t4]
    application error
    Exception Message:: RemoteException occurred in server thread; nested
    exception is: java.rmi.RemoteException: ; nested exception is:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.TransactionRolledbackException: CORBA
    TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    javax.transaction.TransactionRolledbackException: ; nested exception
    is: javax.ejb.EJBException: nested exception is: SQL Exception:
    Database 'WAS40' not found. vmcid: 0x0 minor code: 0 completed: No
    Localized Message :: RemoteException occurred in server thread; nested
    exception is: java.rmi.RemoteException: ; nested exception is:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.TransactionRolledbackException: CORBA
    TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    javax.transaction.TransactionRolledbackException: ; nested exception
    is: javax.ejb.EJBException: nested exception is: SQL Exception:
    Database 'WAS40' not found. vmcid: 0x0 minor code: 0 completed: No
    Do you have any suggestions
    Regards,
    Sunil

    Hi Peter,
    You are right. Child is being inserted even before parent got inserted (actually "committed") into the DB.we would need to look at your code where are you doing all these creates (may be ejbCreate). Most probably ur error should get fixed by changing the transactional attributes in the DD files. Try using <delay-database-inserts-until> element.
    More details available at:
    http://e-docs.bea.com/wls/docs70/faq/ejb.html#257426
    If it doesn't help, open up a case with BEA Support.
    Hope it helps!
    Thanks
    -Rais

  • Error in sqlj stub: invalid argument

    Could you please help me with this?
    When I try to launch sqlj it always answer in the same way:" Error in sqlj stup: ivalid argument" even if I specify arguments that should be recognized.
    I am using WinNT 4.0 Server:
    Classpath:
    .;..;c:\sqlj\lib\translator.zip;c:\sqlj\lib\runtime.zip;D:\PeerLogic\LiveCon
    tent\VISION_3.1\ScreenBean_1.3\lib\kixemuapi.jar;D:\PeerLogic\LiveContent\VI
    SION_3.1\Generators_3.8.1\386xnt4;e:\jsdk2.1\examples;e:\jsdk2.1\server.jar;
    e:\jsdk2.1\servlet.jar;d:\websphere\appserver\servlets
    Path:
    D:\PeerLogic\LiveContent\VISION_3.1\Generators_3.8.1\386xnt4\bin;D:\PeerLogi
    c\LiveContent\VISION_3.1\Groff_1.10\386xnt4\bin;D:\PeerLogic\LiveContent\VIS
    ION_3.1\Tools_4.5.1\386xnt4\bin;%SystemRoot%\system32;%SystemRoot%D:\PeerLog
    ic\LiveContent\VISION_3.1\JavaRuntimeEnvironment_1.1.8\bin;D:\WebSphere\AppS
    erver\plugins\nt;e:\jdk1.1.8\bin;c:\sqlj\bin
    Thanks in advance
    null

    Christian --
    Your information is not sufficient to determine the cause of the problem (some system or spawnvp call returns the error code EINVAL).
    - If you just say sqlj, do you also see the problem?
    - Do you see the problem if you say sqlj -n ?
    - As a workaround, you can give the -n argument to sqlj to see an alternative command line that you could issue directly without going through the SQLJ wrapper executable.
    - I can also give you the source to sqlj.exe, so you can try to get to the bottom of this problem in your environment (mail to [email protected])
    Thanks!
    -- Ekkehard

  • Exception creating InitialContext

    Can anyone help me figure out why I get an exception creating a default initial context?
    I have a class that contains a method that contains the following line:
    // Get naming context.
    initial = new InitialContext();
    This class is used by a Java application and works fine. I have a simple C++ application that uses the
    JNI Invocation API to load a JVM and then calls the same method in the same class. In this case, the same line of code throws an exception (below). Here's the relevant C++ code.
    vm1_1_args.version = JNI_VERSION_1_1;
    JNI_GetDefaultJavaVMInitArgs(&vm1_1_args);
    sprintf(classpath, "%s;%s", vm1_1_args.classpath, "E:\\WebSphere\\wsappdevie51\\DocuRouter\\SourceAppAPI\\bin\\jar\\DocuRouterSourceAPI.jar;C:\\j2sdkee1.3.1\\lib\\j2ee.jar;C:\\j2sdkee1.3.1\\lib\\j2ee-ri-svc.jar;E:\\WebSphere\\wsappdevie51\\DocuRouter\\J2EEApp\\J2EEAppClient.jar");
    vm1_1_args.classpath = classpath;
    res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm1_1_args);
    cls = env->FindClass("com/softlinx/docurouter/DocuRouterSourceAppAPI");
    urlcls = env->FindClass("java/net/URL");
    mid = env->GetMethodID(cls, "initialize", "(Ljava/lang/String;Ljava/net/URL;)V");
    // Get the constructor for the class
    constructormid = env->GetMethodID(cls, "<init>", "()V");
    // Get the constructor for the class
    urlconstructormid = env->GetMethodID(urlcls, "<init>", "(Ljava/lang/String;)V");
    // Construct java object.
    obj = env->NewObject(cls, constructormid);
    // Create app name string
    appname = env->NewStringUTF("AscentCapture");
    // Create URL string
    urlstring = env->NewStringUTF("http://qa-89.softlinx.com:10590");
    // Construct URL object
    urlobj = env->NewObject(urlcls, urlconstructormid, urlstring);
    env->CallVoidMethod(obj, mid, appname, urlobj);
    Here's the exception when the following line is called: initial = new InitialContext();
    org.omg.CORBA.INITIALIZE: can't instantiate custom socket factory: com.sun.enter
    prise.iiop.IIOPSSLSocketFactory minor code: 0 completed: No
    at com.sun.corba.ee.internal.corba.ORB.parseProperties(ORB.java:1245)
    at com.sun.corba.ee.internal.POA.POAORB.parseProperties(POAORB.java:268)
    at com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.ja
    va:344)
    at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:
    116)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:461)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
    at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.jav
    a:336)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
    at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:31)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    52)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:178)
    at com.softlinx.docurouter.DocuRouterSourceAppAPI.initialize(DocuRouterS
    ourceAppAPI.java:47)

    Got it working.
    Evidently JNI 1.1 does not support CORBA (or does not support it fully) because when I switched to JNI 1.2 and a newer JVM the error went away.

  • Error in starting Websphere: during loading of EJB jar

    Hi,
    i am using Websphere. When i restart server and one EJB jar gets deployed. following error comes
    java.lang.NoClassDefFoundError: org/omg/CORBA/por4able/InputStream
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    Can any one have any pointers
    In case of more details. Please let me know ASAP.
    Thanks
    ~Aman

    Hi,
    This is an issue related to classpath. Make sure that all the jars required are placed in your classpath, specially j2ee.jar, bootstrap.jar and so on I don't remember the names.
    HTH
    VJ

Maybe you are looking for

  • How to Split the message content?

    Hi ....     I am having an input File like below format. <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_ISO8583 xmlns:ns0="http://axis.com/bank_statement">    <Field1></Field1> - 0 to 1    <Filed2></Filed2> - 0 to 1    <Filed3></Filed3> - 0 to unboun

  • Data displayed on the report in disc plus when used "GROUP BY"

    Hi, I have created a cusom folder, in which the query has group by on 3 columns. So the report in Discoverer plus is showing as Accounting Period     Market      Account     name,     Total billed 200812     xyz     12345     xxxxx,     $12,345.00   

  • How to read analogue input signal in NI 9201 module using lab view

    hi all iam using Crio 9012 module for real time controller nd iam using NI-9201 for input and NI9263 for output i have configures cRIO 9012 on my Pc but how i will take analog input using NI-9201 module thanks tc Solved! Go to Solution.

  • Recently added folder is missing

    on my itunes, "recently added" folder is missing since last month on my MacBook Pro. How can i fix? many thanks,

  • Does native compiling improve application performance ?

    Hi, I've got familiar with Excelsior Native Compiler since a week ago. They claim on their website that compiling Java classes directly to native code (machine code) will improve the performance of the application. However, JAlbum (http://jalbum.net)