NamingException: Intermediate context

Hello!
I'm executing an J2EE application (include a EJB Module Project and a Web Module Project) and the following error appears when a EJB is required :
2005-06-13 11:40:36,127 [FATAL] com.ieci.tecdoc.isicres.ejb.common.ISicresEJBResolver getEJBSecurityRemote Imposible obtener el home para [ejb/Security]
com.sap.engine.services.jndi.persistent.exceptions.NamingException: Intermediate context : ejb was not found
     at com.sap.engine.services.jndi.implserver.ServerContextImpl.getLastContainer(ServerContextImpl.java:261)
     at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:562)
     at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:326)
     at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:222)
     at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:236)
     at javax.naming.InitialContext.lookup(InitialContext.java:347)
     at javax.naming.InitialContext.lookup(InitialContext.java:347)
     at com.ieci.tecdoc.common.ejbutils.EJBResolver.getEJBHome(EJBResolver.java:43)
     at com.ieci.tecdoc.isicres.ejb.common.ISicresEJBResolver.getEJBSecurityRemote(ISicresEJBResolver.java:75)
     at com.ieci.tecdoc.isicres.usecase.AbstractUseCase.getSecuritySRemote(AbstractUseCase.java:66)
     at com.ieci.tecdoc.isicres.usecase.security.SecurityUseCase.login(SecurityUseCase.java:45)
     at jsp_login1118653625410._jspService(jsp_login1118653625410.java:83)
     at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:111)
     at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:123)
     at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:68)
     at com.ieci.tecdoc.isicres.filters.LoginCheckFilter.doFilter(LoginCheckFilter.java:148)
     at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:64)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:355)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:250)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:319)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:297)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:696)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:221)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:146)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
     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:94)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:140)
Anybody can help me? Why don't detect the EJB? What do I need?
Thanks

Hi Carlos
Do tis thing for the lookup provide the JNDI path given at
Visual Admin Tool > server 0[some id] >> services >> EJB Container >> Beans
click on Beans to open the deployed EJB's Application
for example : sap.com >> EJB.jar >> [your bean]
Hope it helps
Sai

Similar Messages

  • INITIAL_CONTEXT_FACTORY, PROVIDER_URL and URL_PKG_PREFIXES

    Hello!!
    I hope that you can help me. What are the values of these three environment varibles? I have a problem when I create a new InitialContext .. what is wrong? This is my code :
    Hashtable env = new Hashtable();
    env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
    env.put(javax.naming.Context.PROVIDER_URL, "localhost:50004");
    env.put(javax.naming.Context.URL_PKG_PREFIXES, "com.sap.tm.jndi.providers");
    Context ctx = new InitialContext(env);
    In this moment appears the following error :
    com.sap.engine.services.jndi.persistent.exceptions.NamingException: Intermediate context : ejb was not found
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.getLastContainer(ServerContextImpl.java:261)
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:562)
         at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:326)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:222)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:236)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
    Thanks.
    Carlos

    Hi Carlos,
    your parameters are right. It seems like a wrong JNDI name into the call of the lookup method for finding an EJB. Check this and make you sure this element is existing into your JNDI.
    Regards André

  • How to use my connection pool in multiple servlets?

    I now have a functioning connection pool using these lines in a servlet:
    private Connection getConnection(String lookup) throws NamingException, SQLException {
    Context context = new InitialContext();
    DataSource ds = (DataSource)context.lookup(lookup);
    Connection ocon = ds.getConnection();
    context.close();
    return ocon;
    } // private Connection getConnection(String lookup) throws NamingException, SQLException {
    ========================
    If I want to create additional servlets in the same web app which query the same database,
    do I need to repeat this block of code in every servlet, or can I just put it in one servlet
    and have other servlets access it in some way to get a connection? Should I change the code
    above from a "private" Connection to a "public" Connection?
    An example servlet is shown below. To put my question another way: If I want to
    create a second servlet with a different set of queries, would I just make a copy of the first
    servlet and then change only the queries, or is there a more efficient way to have multiple
    servlets get connections from the pool?
    Any suggestions are greatly appreciated.
    Thank you.
    Logan
    ************************************servlet example**********************************
    package CraigsClasses;
    import javax.servlet.*;
    import javax.servlet.jsp.*;
    import java.net.*;
    import java.util.*;
    import java.io.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.Date;
    import java.text.*;
    import javax.naming.*;
    import javax.sql.DataSource;
    public class CraigsMain extends HttpServlet {
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    private Connection getConnection(String lookup) throws NamingException, SQLException {
    Context context = new InitialContext();
    DataSource ds = (DataSource)context.lookup(lookup);
    Connection ocon = ds.getConnection();
    context.close();
    return ocon;
    } // private Connection getConnection(String lookup) throws NamingException, SQLException {
    // Process the http Get request
    public void doGet(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {
    try {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String sql = "select formtitle from checkboxforms where cbformid = 157";
    // error occurs at this line
    Connection ocon = getConnection("java:comp/env/jdbc/CraigsList");
    PreparedStatement pStmt = ocon.prepareStatement(sql);
    ResultSet rs1 = pStmt.executeQuery();
    rs1.next();
    out.println("<br>" + rs1.getString(1));
    rs1.close();
    pStmt.close();
    ocon.close();
    } catch(SQLException sqle) {
    System.err.println("sql exception error: " + sqle);
    } catch(NamingException ne) {
    System.err.println("naming exception error: " + ne);
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    doGet(request, response);
    =======================================================================

    sjasja, Thank you for the reply. What you are suggesting is exactly what I have been looking for. But I'm pretty weak on how to make this separate con pool servlet work. My first attempt is shown below. It doesn't compile this line, which is obviously wrong:
    public static Connection getConnection(String lookup) throws NamingException, SQLException {
    Could you please help me with this servlet code? Thanks.
    package CraigsClasses;
    import javax.servlet.*;
    import javax.servlet.jsp.*;
    import java.net.*;
    import java.io.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.DataSource;
    public class ConPoolInit extends HttpServlet {
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    try {
    public static Connection getConnection(String lookup) throws NamingException, SQLException {
    Context context = new InitialContext();
    DataSource ds = (DataSource)context.lookup(lookup);
    Connection ocon = ds.getConnection();
    context.close();
    return ocon;
    } // private Connection getConnection(String lookup) throws NamingException, SQLException {
    } catch(SQLException sqle) {
    System.err.println("sql exception error: " + sqle);
    } catch(NamingException ne) {
    System.err.println("naming exception error: " + ne);
    =======================================

  • Java.lang.NullPointerException on connection

    it always prompt me this error. pls help. if need more detial info pls let me know.
    java.lang.NullPointerException
         at com.maint.support.model.Model.connect(Model.java:34)
         at com.maint.support.model.WebModel.init(WebModel.java:32)
         at org.apache.jsp.userMenu$jsp._jspService(userMenu$jsp.java:102)
    //in my initialize jsp page
    <jsp:useBean
    id="model"
    scope="session"
    class="com.maint.support.model.WebModel">
    <% model.init(application); %>
    </jsp:useBean>
    // in model.init()
    try {
    connect()
    // in Model class
    public void connect() throws SQLException,NamingException
    try {
         Context initCtx = new InitialContext();
         Context envCtx = (Context) initCtx.lookup("java:comp/env");
         DataSource ds = (DataSource) envCtx.lookup("jdbc/maint");
         Connection con = ds.getConnection();
         con.setAutoCommit(false);
    etc...........

    close u r connection in finally block
    something like this
    <%
    try{}
    catch(exception e){}
    finally{
    try
    if (stmt != null)
    stmt.close();
    catch(Exception e)
    try
    if (conn!= null)
    conn.close();
    catch (Exception e)
    %>
    regds

  • Reading a global variable from tomcat with JNDI. Example not working

    Hi you can help me to make this example work?
    Context initCtx = new InitialContext();
    Context envCtx = (Context)initCtx.lookup("java:comp/env");
    Object o = envCtx.lookup("testvariable");
    <GlobalNamingResources>
    <Environment name="testvariable" type="java.lang.Boolean" value="false"/>
    Nice greetings Christian

    I found out that in addition to having the JNDI lookup code, you have to
    - have the environment variable declared in the app server configuration
    - have a resource-env-ref entry in your webapp module
    - have the application container bind your named variable with the global variable
    I am using tomcat 5.5, and have done the following. with success.
    the following example uses the default sample environment variable in the tomcat server.xml
    in tomcat server.xml:
    <GlobalNamingResources>
    <Environment
    name="simpleValue"
    type="java.lang.Integer"
    value="30"/>
    </GlobalNamingResources>
    in my application's web.xml:
    <resource-env-ref>
    <description>Test read resource environment variable</description>
    <resource-env-ref-name>simpleValue</resource-env-ref-name>
    <resource-env-ref-type>java.lang.Integer</resource-env-ref-type>
    </resource-env-ref>
    in my META-INF/context.xml (or otherwise, in tomcat's context deployment configuration)
    <ResourceLink name="simpleValue" global="simpleValue"
    type="java.lang.Integer"/>
    Note: in theory, the named resource by your web app could be different from the global environment variable, but here they are the same 'simpleValue'
    This is the really important step, that with out it, nothing works.,
    the context.xml is known to work with tomcat when it exists in META-INF/context.xml inside the .war file (i use war files to deploy, but you should be able to create META-INF/context in an unpacked webapp directory too, and tomcat will find it.,
    I can not say what it is like for other app servers, but this mapping step is the critical point that i discovered after A LOT of hair pulling.
    then, make use of it, i created a jndiTest.jsp:
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.naming.NamingException" %>
    <%
    try {
    Context initCtx = new InitialContext();
    Context ctx = (Context) initCtx.lookup("java:/comp/env");
    Object o = ctx.lookup("simpleValue");
    %>
    <%=o%><br>
    <%
    catch (NamingException ex) {
    System.err.println(ex);
    %>
    since my server.xml defines the value for 'simpleValue' to be 30, this page displays 30

  • ClassCastException with OracleConnection in Oracle 9i

    I have a piece of code that works perfectly with Oracle 8i and JDK 1.3.
    Now I've migrated to Oracle 9i and JDK 1.4. I continue working with tomcat and I've configured server.xml file (some changes about 'url' and 'username').
    I get a ClassCastException when I try to make a explicit cast to OracleConnection of the connection object recovered. This is the code:
    public class CargadorRecursos {
         public Connection devuelveConexion()
              throws javax.naming.NamingException, SQLException {
              Context envContext = devuelveContexto();
              DataSource ds = (DataSource) envContext.lookup("jdbc/prosegur");
              Connection conn = ds.getConnection();
              return conn;
    in another classes I do:
    OracleConnection conn = (OracleConnection) CargadorRecursos.getCargador().devuelveConexion();
    and then the ClassCastException is raised in the web browser.
    Please, help.

    Cast class exception means you are trying to cast an object to something that it can't be case too.
    You can determine the actual class of an instance by doing the following...
    System.out.println("class=" + myinstance.getClass().getName());
    Once you know the class that actually is being used you can determine the course of action to take...
    1. It isn't the class that you think it is, something is wrong with your code.
    2. Something changed outside of your code and you will have to code around the problem.
    3. Class loaders are being used and you are using class instances from two different class loaders - use the same class loader.

  • Cannot deploy using .war file

    im using ant to build my war file.
    the application works when i copy the build/web to %catalina%\webapps folder but when i use war file there is error.
    i check the directory and the files of the working and not working source files but nothing seems to be different.
    can anyone help?
    java.lang.NullPointerException
         at com.saw.Media.UserAccessBean.closeConnection(UserAccessBean.java:262)
         at com.saw.Media.UserAccessBean.addUser(UserAccessBean.java:177)
         at org.apache.jsp.addUser1_jsp._jspService(addUser1_jsp.java:176)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at com.saw.Media.SVLDispatcherServlet.doPost(SVLDispatcherServlet.java:143)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:534)

    Thanks for replying.
    i used the example at this web site http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    everything worked.
    jakarta-tomcat-4.1.29
    jakarta-ant-1.5-bin
    mysql-4.0.16-win
    mysql-connector-java-3.0.9-stable
    I suspect its my .java code. I tried to change the .java code but more errors which i dont understand comes up.
    public void addUser() throws Exception
    Connection dbConnection = null;
    try {
    dbConnection = getConnection();
    add(dbConnection);
    } catch (SQLException e) {
    System.out.println(e.getMessage());
    // Print any other nested exceptions
    while ((e = e.getNextException()) != null) {
    System.out.println(" next " + e.getMessage());
    throw e; // Re-throw the SQLException
    } finally {
    closeConnection(dbConnection);
    } // addUser()
    // PRIVATE METHODS
    // ===============
    // Add an user to the database
    private void add(Connection conn) throws Exception
    PreparedStatement ps = null;
    // Build the SQL statement
    StringBuffer sql = new StringBuffer();
    sql.append("INSERT INTO USERS ");
    sql.append("(user_name, user_pass, user_full_name) " ); // Leave a space at the end
    sql.append("VALUES (?, ?, ?) ");
    // Execute SQL statement
    try {
    ps = conn.prepareStatement(sql.toString());
    ps.setString(1, userName); // Set the missing values in the prepared statement
    ps.setString(2, userPass);
    ps.setString(3, userFullName);
    count = ps.executeUpdate();
    } catch (SQLException e) {
    count = 0; // So we know the operation was not successful
    // Here we are catching exceptions to reset a counter and optionally
    // for debugging purposes
    // May be we could log them to a file
    // Once caught, we are re-throwing them once again to a higher level
    // So, we need the catch block even if we are not debugging
    System.out.println(e.getMessage());
    // Print any other nested exceptions
    while ((e = e.getNextException()) != null) {
    System.out.println(" next " + e.getMessage());
    throw e; // Re-throw the SQLException
    // will be caught at a higher level
    } finally {
    ps.close();
    } // add()
    * Gets a datasource connection
    * Different from getting a databse connection using DriverManager
    * @param jndiName Name of datasource
    Connection getConnection()
    throws NamingException, SQLException {
    Context initCtx = null;
    try {
    // Obtain the initial JNDI context
    initCtx = new InitialContext();
    // Perform JNDI lookup to obtain resource manager connection factory
    DataSource ds =
    (javax.sql.DataSource)
    initCtx.lookup("java:comp/env/jdbc/" + jndiName);
    // Invoke factory to obtain a connection
    return ds.getConnection();
    } finally {
    // Don't forget to close the naming context
    if (initCtx != null) {
    initCtx.close();
    } // getConnection()
    // Close a datasource connection
    // Similar to closing a database connection
    private void closeConnection (Connection conn) throws Exception {
    conn.close();
    } // closeConnection()

  • Calling a class from a servlet

    Hello,
    I have created this class for creating a connection pool, which I want to use in a web app with a bunch of servlets. My plan is to put this class in the classes folder with all my other classes (I hope that works). But first I am seeking an answer to this question:
    How do I get a connection from the pool from my other servlets? I have tried this line in a servlet:
    Connection ocon = ConPoolInit.getConnection("java:comp/env/jdbc/CraigsList");
    ...but it does not compile. Any suggestions for what this line should be to get a connection from the pool (see class below) are greatly appreciated.
    Thank you,
    Logan
    package CraigsClasses;
    import java.net.*;
    import java.io.*;
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.DataSource;
    public class ConPoolInit2 {
    public static Connection getConnection(String lookup) throws NamingException, SQLException {
    Context context = new InitialContext();
    DataSource ds = (DataSource)context.lookup(lookup);
    Connection ocon = ds.getConnection();
    context.close();
    return ocon;
    **********************************

    Thank you DrClap for helping.
    I put in this line to import the ConPoolInit2.class.
    import ConPoolInit2.*;
    Error say the package does not exist. But to modify the classpath seems like a lot of work.
    I must ask again for your expert opinion: is this the best method for connection pooling?
    If I put these lines in every servlet, it works. But is it right? Is a separate class better?
    public static Connection getConnection(String lookup) throws NamingException, SQLException {
    Context context = new InitialContext();
    DataSource ds = (DataSource)context.lookup(lookup);
    Connection ocon = ds.getConnection();
    context.close();
    return ocon;
    } // private Connection getConnection(String lookup) throws NamingException, SQLException {
    Should ConPoolInit2 be a servlet?
    This system will eventually be capable of handling millions of users such as
    another craigslist.com or another ebay.com. Any suggestions are very welcome.
    --Logan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Conn.rollback() must be caught or declared to be thrown

    Hi, I'm having problems compiling the following code
    private void toInsert(String insert_foo, int insert_bar) {
              InitialContext context = null;
              Connection conn = null;
              PreparedStatement pstmt= null;     
              try {
                   context = new InitialContext();
                   DataSource ds = (DataSource) context.lookup("java:comp/env/jdbc/TestDB");
                   conn = ds.getConnection();
                   conn.setAutoCommit(false);
                   pstmt = conn.prepareStatement("INSERT into testdata values(?, ?)");
                   pstmt.setString(1, insert_foo);
                   pstmt.setInt(2, insert_bar);
                   pstmt.executeUpdate();
                   conn.commit();
                   conn.setAutoCommit(true);
                   pstmt.close();
                   pstmt = null;
                   conn.close();
                   conn = null;
                   context.close();
                   context = null;
              catch (Exception e) {
                   conn.rollback();
              finally {
                   if (pstmt != null) {
                        try { pstmt.close(); }          
                        catch (SQLException e) {;}     
                        pstmt = null;               
                   if (conn != null) {
                        try { conn.close(); }          
                        catch (SQLException e) {;}     
                        conn = null;               
                   if (context != null) {
                        try { context.close(); }     
                        catch (NamingException e) {;}     
                        context = null;               
         }I got this error when I try to compile the above;
    unreported exception java.sql.SQLException; must be caught or declared to be thrown
    conn.rollback();
    I search and read through a lot of posts here that rollback() could be used in the catch block but why I can't I compile it?
    Please help me out, thank you.
    puzzled....

    Is it similiar to factory methods? No.
    I've read up on this:
    http://www.javaworld.com/javaworld/javaqa/2001-05/02-qa-0511-factory.html?
    "small boy with a pattern" syndrome strikes again.
    Could you assist to help me in giving me guidelines
    for writing the database utilites class?
    Appreciated...
    public final class DatabaseUtils
        public static void close(Connection c)
            if (c != null)
                try
                    c.close();
                catch (SQLException e)
                      // print stack trace or, better yet, log the exception with Log4J
        // same for other close operations on ResultSet and Statement
        public void rollback(Connection c)
            if (c != null)
                try
                    c.rollback();
                catch (SQLException e)
                      // print stack trace or, better yet, log the exception with Log4J
    }%

  • Howto: portable bind, lookup remote + local beans (EJB3) to JNDI with WL 10

    I struggle writing portable ejb3 applications with weblogic.
    I have a JEE5 (EJB3) application using the standard and it works fine on JBoss and WebSphere.
    Porting it to Weblogic (10.0) there are quite a lot of problems, mainly
    in the area of JNDI lookups of EJBs.
    So the issue is how to configure the JNDI-Names of local and remote beans (EJB3!)
    in a portable way with Weblogic without making the application unportable.
    The biggest problem is caused by the fact, that WL 10 does not bind the EJBs
    to the JNDI-tree by default. The bound name would not really be important (JBoss and WebSphere
    come up with a value that can easily be used for a generic lookup). Just any binding
    would be fine.
    So there has to be some extra step in order to get WL 10 binding a remote or local
    bean into the JNDI tree. Unfortunately none of them works/is acceptable in an portable JEE app.
    Idea1: Using the "mappedName" attribute (of @Stateless, @Stateful)
    Well, this one is not portable as the documentation states:
    [http://edocs.bea.com/wls/docs100/ejb30/annotations.html#wp1417411|http://edocs.bea.com/wls/docs100/ejb30/annotations.html#wp1417411]
    Idea2: Using @weblogic.ejbgen.JndiName
    Using weblogic's annotation JndiName also doesn't bind the bean to the given names:
    @Stateless
    @weblogic.ejbgen.JndiName(local="myapp/XBean/local",remote="myapp/XBean/remote")
    public class XBean implements XLocal {
    Besides this, that code would not be portable (as nobody wants an weblogic.jar within another application server).
    Idea3: Using weblogic-ejb-jar.xml
    Mapping a bean using the weblogic-ejb-jar.xml below, also doesn't work.
    The bean is not bound to the given name "myapp/XBean/remote":
    Exception in thread "main" javax.naming.NameNotFoundException:
    Unable to resolve 'myapp.XBean.remote'. Resolved 'myapp.XBean' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'myapp.XBean.remote'. Resolved 'myapp.XBean']; remaining name 'remote'
    Looking at the JNDI tree, there is "something" bound to "myapp.XBean", but it is not the bean.
    Doing a lookup with this name ("myapp/XBean" or "myapp.XBean"), gives this:
    Exception in thread "main" java.lang.ClassCastException: weblogic.jndi.internal.WLContextImpl cannot be cast to test.server.XRemote
         at test.client.Client.main(Client.java:14)
    Question 1) What is the preferred way to bind and lookup a remote bean in Weblogic 10?
    Again: the goal is to use pure EJB3.
    Question 2) What is the preferred way to bind and lookup a local bean in WL 10?
    This lookup has to be done on the server in some "unmanaged" classes
    where injection doesn't work.
    If there is an unportable way to bind a local bean to jndi, it might do for the time.
    The important thing would be, that there is no weblogic specific code within the application.
    So, solving it using weblogic-xml files would be best.
    This declaration
    <local-jndi-name>myapp/XBean/local</local-jndi-name>
    will come up with the same problems, I guess.
    Here's the code. We want the local interface extending the remote interface,
    so that the local beans can do all what the remote beans can do too.
    XRemote.java
    package test.server;
    import javax.ejb.Remote;
    @Remote
    public interface XRemote {
    String JNDI_NAME = "myapp/XBean/remote";
    void doXRemote();
    XLocal.java
    package test.server;
    import javax.ejb.Local;
    @Local
    public interface XLocal extends XRemote {
    String JNDI_NAME = "myapp/XBean/local";
    void doXLocal();
    XBean.java
    package test.server;
    import javax.ejb.Stateless;
    @Stateless
    public class XBean implements XLocal {
    @Override
    public void doXLocal() {
    System.out.println("doXLocal() called");
    @Override
    public void doXRemote() {
    System.out.println("doXRemote() called");
    weblogic-ejb-jar.xml
    <weblogic-ejb-jar
    xmlns="http://www.bea.com/ns/weblogic/10.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/10.0 http://www.bea.com/ns/weblogic/10.0/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
    <ejb-name>XBean</ejb-name>
    <jndi-name>myapp/XBean/remote</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    Client.java
    package test.client;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import test.server.XRemote;
    public class Client {
    public static void main(String[] args) throws NamingException {
    InitialContext context = getInitialContext();
    XRemote xRemote = (XRemote) context.lookup(XRemote.JNDI_NAME);
    xRemote.doXRemote();
    private static InitialContext getInitialContext() throws NamingException {
    Properties properties = new Properties();
    properties.put(Context.PROVIDER_URL, "t3://localhost:7001");
    properties.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    properties.put(Context.SECURITY_PRINCIPAL, "weblogic");
    properties.put(Context.SECURITY_CREDENTIALS, "weblogic");
    return new InitialContext(properties);
    }

    Hi,
    about how to specify jndi name of remote ejb, please refer to this link: http://forums.oracle.com/forums/thread.jspa?threadID=800314&tstart=1
    please note @JNDIName isn't an EJBGen annotation. its package name is weblogic.javaee.
    So far, based on the EJB spec, local ejb will not be bound to global JNDI. EJB3.1 specification is trying to specify the portable JNDI names including local EJBs, but it isn't published yet.
    local EJB is used within one application and ejb reference is used to lookup the local EJB. please refer to EJB specification about how to declare an EJB local reference. once it is declared, it can be looked up from the java:comp\env JNDI namespace.
    But, if the local client of the EJB isn't a JavaEE component, there won't be any declaration of ejb-local-ref. You may want to try remote access to the EJB from the non-JavaEE client.

  • MDB Not able to consume the messages

    Hi
    The code below put the messages in the queue which I can see through the admin console
    public class TestMDBClient {
    public static void main(String [] args) throws JMSException,
    NamingException {
    final Context ic = getInitialContext();
    final QueueConnectionFactory qcf = (QueueConnectionFactory)ic.lookup("jms/TestConnectionFactory");
    // Lookup should specify the queue name that is mentioned as "mappedName" in MessageDriven Bean.
    System.out.println("TEST ="+qcf);
    final Queue destQueue = (Queue)ic.lookup("jms/TestQueue");
    ic.close();
    final QueueConnection connection = qcf.createQueueConnection();
    try {
    final QueueSession session = connection.createQueueSession(false, 0);
    final QueueSender sender = session.createSender(destQueue);
    final TextMessage msg = session.createTextMessage("Hello World from Message Driven Bean");
    sender.send(msg);
    System.out.println("Message Sent");
    } catch (Exception ex) {
    ex.printStackTrace();
    } finally {
    connection.close();
    private static Context getInitialContext() throws NamingException {
    Hashtable env = new Hashtable();
    // Add InitialContext property assignments here.
    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
    // Note that by default WebLogic server is not created with security, so credentials are not needed.
    // TODO: Verify the server address and port number
    env.put(Context.PROVIDER_URL, "t3://localhost:7101");
    return new InitialContext( env );
    But My Mdb onMessage() is not getting executing
    import javax.ejb.EJBException;
    import javax.ejb.MessageDrivenBean;
    import javax.ejb.MessageDrivenContext;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    public class TestMDBBean implements MessageDrivenBean, MessageListener {
    private MessageDrivenContext _context;
    public void ejbCreate() {
    public void setMessageDrivenContext(MessageDrivenContext context) throws EJBException {
    _context = context;
    public void ejbRemove() throws EJBException {
    public void onMessage(Message message) {
    System.out.println("I am here ...");
    System.out.println(message);
    My config xml files are
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1"
    xmlns="http://java.sun.com/xml/ns/j2ee">
    <enterprise-beans>
    <message-driven>
    <description>Message-Driven Bean</description>
    <display-name>TestMDB</display-name>
    <ejb-name>TestMDB</ejb-name>
    <ejb-class>oracle.apps.rms.model.TestMDBBean</ejb-class>
    <messaging-type>javax.jms.MessageListener</messaging-type>
    <transaction-type>Container</transaction-type>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-ejb-jar http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd"
    xmlns="http://www.bea.com/ns/weblogic/weblogic-ejb-jar">
    <weblogic-enterprise-bean>
    <ejb-name>TestMDB</ejb-name>
    <message-driven-descriptor>
    <destination-jndi-name>jms/TestQueue</destination-jndi-name>
    </message-driven-descriptor>
    <enable-call-by-reference>true</enable-call-by-reference>
    </weblogic-enterprise-bean>
    <message-destination-descriptor>
    <message-destination-name>TestQueue</message-destination-name>
    <destination-jndi-name>jms/TestQueue</destination-jndi-name>
    </message-destination-descriptor>
    </weblogic-ejb-jar>
    I even tried with a standalone java program ; no luck there also .Any body can help ?
    package oracle.apps.rms.model;
    import java.util.Hashtable;
    import javax.jms.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class Test implements MessageListener {
    public final static String JNDI_FACTORY =
    "weblogic.jndi.WLInitialContextFactory";
    // ******Defines the JMS CONNECTION FACTORY JNDI name.******
    public final static String JMS_FACTORY = "jms/TestConnectionFactory";
    // ******Defines the QUEUE JNDI name.******
    public final static String QUEUE = "jms/TestQueue";
    private QueueConnectionFactory qconFactory;
    private QueueConnection qcon;
    private QueueSession qsession;
    private QueueReceiver qreceiver;
    private Queue queue;
    private boolean quit = false;
    public void onMessage(Message msg) {
    try {
    String msgText;
    if (msg instanceof TextMessage) {
    msgText = ((TextMessage)msg).getText();
    } else {
    msgText = msg.toString();
    System.out.println("Message Received: " + msgText);
    if (msgText.equalsIgnoreCase("quit")) {
    synchronized (this) {
    quit = true;
    this.notifyAll();
    } catch (JMSException jmse) {
    System.err.println("An exception occurred: " + jmse.getMessage());
    public void init(Context ctx, String queueName) throws NamingException,
    JMSException {
    qconFactory = (QueueConnectionFactory)ctx.lookup(JMS_FACTORY);
    qcon = qconFactory.createQueueConnection();
    qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    queue = (Queue)ctx.lookup(queueName);
    System.out.println(queue);
    qreceiver = qsession.createReceiver(queue);
    qreceiver.setMessageListener(this);
    qcon.start();
    public void close() throws JMSException {
    qreceiver.close();
    qsession.close();
    qcon.close();
    public static void main(String[] args) throws Exception {
    String str = "t3://localhost:7101";
    InitialContext ic = getInitialContext(str);
    Test qr = new Test();
    qr.init(ic, QUEUE);
    System.out.println("JMS Ready To Receive Messages (To quit, send a \"quit\" message).");
    synchronized (qr) {
    while (!qr.quit) {
    try {
    qr.wait();
    } catch (InterruptedException ie) {
    ie.printStackTrace();
    qr.close();
    private static InitialContext getInitialContext(String url) throws NamingException {
    Hashtable<String, String> env = new Hashtable<String, String>();
    env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
    env.put(Context.PROVIDER_URL, url);
    return new InitialContext(env);
    Thanks
    Suneesh

    Hi,
    Please try the below one: http://weblogic-wonders.com/weblogic/2009/08/17/mdb3-0-sample-for-weblogic-application-server/ (if you want to try with MDB3.0)
    If you want to continue with the MDB2.0 then please change the DDs as below:
    *"weblogic-ejb-jar.xml"*
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar
    xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
    <weblogic-enterprise-bean>
    <ejb-name>TestMDB</ejb-name>
    <message-driven-descriptor>
    <destination-jndi-name>TestQ</destination-jndi-name>
    </message-driven-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    *"ejb-jar.xml"*
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar
    xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
    version="2.1">
    <enterprise-beans>
    <message-driven>
    <ejb-name>TestMDB</ejb-name>
    <ejb-class>test.example.mdb.TestMDB</ejb-class>
    <transaction-type>Container</transaction-type>
    <activation-config>
    <activation-config-property>
    <activation-config-property-name>destinationType</activation-config-property-name>
    <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
    </activation-config-property>
    </activation-config>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    I have uploaded My TestMDB Application in : http://www.4shared.com/file/ni4WBc6G/TestMDB.html you can get the "QueueSend.java" program from Step-6) of below link : http://weblogic-wonders.com/weblogic/2010/06/26/basic-jms-demo-using-weblogic-queue/
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com (Wonders Are Here)
    Thanks
    Jay SenSharma

  • Handling connection errors

    Hi,
    I'm working in a client/server application. The server side is EJB 3.0 based and the client side is a simple GUI with connection properties, everyone working in a different computer.
    Because of this, I want to handle all connection problems and report it to the user, by the moment I use to "throw" all errors up and then catch them and pop-up a message.
    For example, at the begining it builds a tree -using a treeviewer-, and if the program couldn't connect, it prints a message and asks to try again or cancel. Later there is a menu option where you can refresh this view.
    The problem is when I have been connected and I disconnect -manually- the network connection of the server, then I try to delete one of the tree objects -it needs to connect to the server for removing the entity- but in front of throwing a exception, it hangs and I have to kill the application and execute it again.
    The code that hangs:
    ------------------------------------- Start of code ----------------------------------------
    public class ComunicacioEJB {
         private static facadeEJB.RedFacadeRemote redfacade;
    public ComunicacioEJB() throws javax.naming.NamingException {
              c = Context();
    lookupRedFacade();
    private void lookupRedFacade() throws javax.naming.NamingException{
              /* exacly hangs here --> */ redfacade = (facadeEJB.RedFacadeRemote) c.lookup("RedFacade/remote");
    -------------------------------- End of code ------------------------------------------
    The context is loaded in another function.
    Do you have any idea of why is this happening? Why it throws if the connection problem is at the start of the program but hangs if the connection problem is once you have been connected before?
    Also it happens if I try to refresh the view or wharever I try.
    Thanks for reading.
    Miquel

    Hi again,
    I haven't found solution yet, but I'm thinking on having a timer or similar for the connection, once this timer ends the funcion throws an exception for timeout.
    I will try and I say to you

  • Can someone checkout this JDBC code for me?

    I'd be very grateful if an expert out there would check out my code for me, which I am about to use a great deal.
    I've written this to save me some duplicated code, but since I haven't seen this approach much in my travels, I'm wondering if it has any particular flaws.
    A separate DbAccess class is instantiated for any database access work, and once instantiated, getConnection is called and once finished closeConnection must be called.
    You can get a ResultSet instance with just a little code and it's up to the calling programme to close it again.
    The only things left open are the Statements, but they will get garbage collected or at any rate will be closed with the connection (whichever is sooner).
    Is there anything wrong with this code?
    import java.sql.*;
    import javax.naming.*;
    import javax.sql.*;
    public class DbAccess{
         * The chosen datasource for this instance of the class
        private String dataSource;
         * The connection held in this instance (created by calling getConnection())
        private Connection con;
         * Instantiates a DbAccess instance, setting the datasource
        public DbAccess(String datasource){
         this.dataSource = dataSource;
         * Gets a connection to the database chosen in constructor parameter:
         * NB The calling programme MUST call closeConnection() after it's finished with it!
        public void getConnection()
         throws NamingException,
                SQLException{
         Context ctx = new InitialContext();
         DataSource ds = (DataSource)ctx.lookup(dataSource);
         con = ds.getConnection();
        }//end getConnection()
         * Closes the connection previously obtained with getConnection(), this MUST be called when the calling
         * programme has finished using the database.
        public void closeConnection()
         throws SQLException{
         con.close();
        }//end closeConnection()
         * Returns a ResultSet for a simple query, using a plain Statement
         * @param query - the complete database query
         * @return ResultSet for the query in the parameter
         * N.B. The calling programme MUST close the ResultSet after it's finished with it!
        public ResultSet getResultSet(String query)
         throws SQLException{
         Statement stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery(query);
         return rs;
        }//end getResultSet()
         * Returns a ResultSet for a simple query, using a PreparedStatement, and accepting
         * a String parameter that can contain a String for a single setString().
         * @param query - the complete database query
         * @param stringToSet - the String for the preparedStatement's setString() method
         * @return ResultSet for the query in the parameter
         * N.B. The calling programme MUST close the ResultSet after it's finished with it!
        public ResultSet getResultSet(String query, String stringToSet)
         throws SQLException{
         PreparedStatement ps = con.prepareStatement(query);
         ps.setString(1,stringToSet);
         ResultSet rs = ps.executeQuery();
         return rs;
        }//end getResultSet()
    }//end class

    Ok, guys you've thoroughly trashed my code, fine, and
    I half expected it because there's nothing like this
    code about the placeYou're suffering from delusions of grandeur. There are plenty of approaches to that particular itch. The closest to what you're trying to achieve would probably be Spring's JDBCTemplate:
    http://www.springframework.org/docs/api/org/springframework/jdbc/core/JdbcTemplate.html
    Hibernate, iBatis, EJB3, and myriad others tackle the issue in other ways.
    , but are we therefore concluding
    that reducing the jdbc code is virtually impossibile
    - and there's an awful lot of it every time you want
    to do a query?My major objection to your approach is that you introduce a variety of bugs without significantly reducing the amount of JDBC code required. Most of what you're after in your class can be achieved by a convenience method to acquire the Connection object.
    1) If (ok maybe it's a big if) - if I always close
    the connection, the statements aren't being leaked
    right?Not necessarily. To the best of my recollection the spec doesn't mandate this. And even if it does I've certainly encountered drivers that don't clean up statement resources that aren't explicitly released. So there's a theoretical and practical aspect to this.
    2) I'm using Tomcat datasources, for getting the
    connection, and I thought that you just had to call
    con.close() for it to return to the pool. Am I wrong
    on this?No, you're right - but nothing in your class prevents the user from calling getConnection twice and leaking a connection - the least you could do in the circumstances is prevent that by throwing an exception if they try.

  • Ejb error((MARSHAL) Could not find class) when using OneToMany relationship

    I am using Netbeans 5.5 with J2EE App Server 9. I have two entity beans with a OneToMany Uni-directional relationship. I have a Remote Stateless session bean which has persistence operations for creating and searching etc.. I am accessing the remote bean via jndi from a j2ee java client. The access works fine. The session bean persist operation creates data in both the entities (cascade persist).
    But, after the data is created, when I access the entity manager find() method from the session bean via the client errors out. This error only happens for the entities with OneToMany relationship, not for OneToOne relationships.
    I am using TOPLINK persistence provider accessing a derby data source. I have the latest persistence library jar files in the library classpath.
    client code:
                Phone p1 = new Phone();
                p1.setPnumber("999 999 9999");
                Customer c1 = new Customer();
                c1.setLname("Smith");
                c1.getPhone().add(p1);
                int pk = agent.createCustomer(c1);    // creates the entities
                Customer c2 = agent.findCustomer(pk);     //  this causes the ERROR
    session bean code:
       @PersistenceContext  private EntityManager em;
        public int createCustomer(Customer c) {
            em.persist(c);
            return c.getId();
        public Customer findCustomer(int i) {          // this causes the ERROR
            return em.find(Customer.class, i);
    exception:
    Mar 30, 2007 3:25:00 PM com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_value
    WARNING: "IOP00810257: (MARSHAL) Could not find class"
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:8309)
    at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:984)
    at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
    at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1987)
    at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2211)
    at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1219)
    at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
    ***exception in Client_1 ***
    at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:329)
    at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:295)
    at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1005)
    at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
    at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(DynamicMethodMarshallerImpl.java:333)
    at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:424)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:162)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
    at com.titan.ejb.__Tester1Remote_Remote_DynamicStub.findCustomer(__Tester1Remote_Remote_DynamicStub.java)
    at com.titan.ejb._Tester1Remote_Wrapper.findCustomer(com.titan.ejb._Tester1Remote_Wrapper.java)
    at com.titan.clients.Client_1.main(Client_1.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:232)
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:329)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)
    Caused by: java.lang.ClassNotFoundException
    ... 25 more
    javax.ejb.EJBException: nested exception is: java.rmi.MarshalException: CORBA MARSHAL 1398079745 Maybe; nested exception is:
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
    java.rmi.MarshalException: CORBA MARSHAL 1398079745 Maybe; nested exception is:
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:224)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:172)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
    at com.titan.ejb.__Tester1Remote_Remote_DynamicStub.findCustomer(__Tester1Remote_Remote_DynamicStub.java)
    at com.titan.ejb._Tester1Remote_Wrapper.findCustomer(com.titan.ejb._Tester1Remote_Wrapper.java)
    at com.titan.clients.Client_1.main(Client_1.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:232)
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:329)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)
    Caused by: org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:8309)
    at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:984)
    at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
    at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1987)
    at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2211)
    at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1219)
    at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
    at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:329)
    at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:295)
    at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1005)
    at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
    at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(DynamicMethodMarshallerImpl.java:333)
    at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readResult(DynamicMethodMarshallerImpl.java:424)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:162)
    ... 12 more
    Caused by: java.lang.ClassNotFoundException
    ... 25 more
    javax.ejb.EJBException: nested exception is: java.rmi.MarshalException: CORBA MARSHAL 1398079745 Maybe; nested exception is:
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
    at com.titan.ejb._Tester1Remote_Wrapper.findCustomer(com.titan.ejb._Tester1Remote_Wrapper.java)
    at com.titan.clients.Client_1.main(Client_1.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:232)
    at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:329)
    at com.sun.enterprise.appclient.Main.main(Main.java:180)

    It appears to be a bug in Netbeans.
    I have a similar error message with the following settings:
    A session bean remote interface
    be.macharis.toon.pacita.common.OriginFacadeRemoteA session bean implementing the remote interface
    be.macharis.toon.pacita.common.OriginFacadeAt deploying the ejb module, the session bean is loaded in the JNDI registry under the name be.macharis.toon.pacita.common.OriginFacadeRemote (the server log says so).
    I have the following code in a servlet:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    try {
        Context ic = new InitialContext();
        OriginFacadeRemote originFacade = (OriginFacadeRemote)ic.lookup(OriginFacadeRemote.class.getName());
        originFacade.setOrigin(componentRegistry, OriginFacadeRemote.ELEMENT_CONTAINER); // <- exception here
    } catch (NamingException e) {
        e.printStackTrace();
    }Yet I get a java.lang.ClassNotFoundException during the EJB method call. The exception does not take place during execution of the method, but before, while the EJB container is still resolving the method. It thus must be a(nother) bug in the implementation of the EJB container.
    And bugs that are outside your control are so much harder to deal with... There was another bug in the EJB container for serialising complex object that I could work around by explicitly serialising the Objects myself to byte arrays. It took me 5 days to do so. I don't know if I will manage to work around this bug. If I do, I will post my solution. For completeness, below my "clarifying" error dump:
    javax.ejb.EJBException: nested exception is: java.rmi.MarshalException: CORBA MARSHAL 1398079745 Maybe; nested exception is:
         org.omg.CORBA.MARSHAL: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.MARSHAL:   vmcid: SUN  minor code: 257 completed: Maybe
         at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:8309)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:984)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:850)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:844)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:834)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_abstract_interface(CDRInputStream.java:275)
         at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectDelegate(IIOPInputStream.java:361)
         at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectOverride(IIOPInputStream.java:524)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345)
         at java.util.HashMap.readObject(HashMap.java:1029)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.corba.ee.impl.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1692)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1210)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:329)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:295)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1005)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1987)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2211)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1219)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:329)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:295)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1005)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1987)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2211)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1219)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:329)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:295)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1005)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
         at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(DynamicMethodMarshallerImpl.java:333)
         at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readArguments(DynamicMethodMarshallerImpl.java:393)
         at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:119)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
         at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
         at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
         at com.sun.corba.ee.impl.protocol.SharedCDRClientRequestDispatcherImpl.marshalingComplete(SharedCDRClientRequestDispatcherImpl.java:154)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:194)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:159)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
         at be.macharis.toon.pacita.common.__OriginFacadeRemote_Remote_DynamicStub.setOrigin(__OriginFacadeRemote_Remote_DynamicStub.java)
         at be.macharis.toon.pacita.common._OriginFacadeRemote_Wrapper.setOrigin(be.macharis.toon.pacita.common._OriginFacadeRemote_Wrapper.java)
         at pacita.servlets.ContainerRegistry.processRequest(ContainerRegistry.java:64)
         at pacita.servlets.ContainerRegistry.doGet(ContainerRegistry.java:95)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
         at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    Caused by: java.lang.ClassNotFoundException
         ... 77 more
    ----------END server-side stack trace----------  vmcid: SUN  minor code: 257 completed: Maybe

  • Appclient - fine from localhost, errors from remote machine

    Hi,
    I've been trying to solve a rather strange problem, but could not find any
    help in the documentation or in this Forum. It's probably just some minor
    thing that I am missing, but those are always the most difficult to find... ;-)
    I have S1AS7 installed on one of our development servers (Linux).
    I created a little EJB and packaged it together with a test servlet and a simple
    console application (using Studio 5).
    Step 1: Using the servlet, everything works fine; EJBs are created and
    modified successfully.
    Step 2: Using the local appclient on the dev server to run the console
    application: everything works fine, too. EJBs are instantiated and everything
    is cool.
    Step 3: I packaged the appclient (using package-appclient),
    copied it to another machine (also Linux) and extracted it there. I modified
    all the paths in asenv.conf and adjusted the host and port in
    sun-acc.xml. I use the same J2SDK as on the dev server. The specified
    port is reachable from the second machine via telnet (rule out firewalls
    and alike). This is the error that I get:
    [bernd@bambi2 appclient]$ ./bin/appclient -client /home/bernd/tmp/TestAppClient.jar -mainclass test.app.TextClient -xml /home/bernd/tmp/AC7/appclient/config/sun-acc.xml
    Dec 30, 2003 2:05:55 PM com.iplanet.ias.appclient.Main <init>
    INFO:
    ---------AppClient Container--------
    Dec 30, 2003 2:05:56 PM com.iplanet.ias.appclient.Main setTagetServerProperties
    INFO: ACC001:Using ClientContainer file: [/home/bernd/tmp/AC7/appclient/config/sun-acc.xml].
    Dec 30, 2003 2:05:57 PM com.iplanet.ias.appclient.Main <init>
    INFO: ACC014: ORB host name: [10.10.0.20]
    Dec 30, 2003 2:05:57 PM com.iplanet.ias.appclient.Main <init>
    INFO: ACC013: ORB port number: [33550]
    Dec 30, 2003 2:06:01 PM com.sun.corba.ee.internal.iiop.ConnectionTable getConnection
    WARNING:
    com.iplanet.ias.cis.connection.ConnectException: com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI_ConnectNative: PR_Connect() failed
            at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:187)
            at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:102)
            at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:118)
            at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:131)
            at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:142)
            at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:76)
            at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:80)
            at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:694)
            at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:630)
            at com.sun.corba.ee.internal.corba.ClientDelegate.request(ClientDelegate.java:955)
            at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
            at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:397)
            at com.sun.enterprise.naming.NamingManagerImpl.<init>(NamingManagerImpl.java:125)
            at com.sun.enterprise.appclient.AppContainer.createManagers(AppContainer.java:134)
            at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:73)
            at com.iplanet.ias.appclient.Main.<init>(Main.java:339)
            at com.iplanet.ias.appclient.Main.main(Main.java:93)
    Caused by: com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI_ConnectNative: PR_Connect() failed
            at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.connectNative(Native Method)
            at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.doConnect(TCPBlockingChannel.java:171)
            at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.<init>(TCPBlockingChannel.java:54)
            at com.iplanet.ias.cis.channel.tcp.TCPChannelFactory.createChannel(TCPChannelFactory.java:97)
            at com.iplanet.ias.cis.channel.ChannelManager.createChannel(ChannelManager.java:58)
            at com.iplanet.ias.cis.connection.Connection.<init>(Connection.java:162)
            ... 16 more
    Dec 30, 2003 2:06:01 PM com.iplanet.ias.appclient.Main <init>
    WARNING: ACC003: Application threw an exception.
    javax.naming.NamingException: Serial Context failure
            at com.sun.enterprise.naming.NamingManagerImpl.<init>(NamingManagerImpl.java:138)
            at com.sun.enterprise.appclient.AppContainer.createManagers(AppContainer.java:134)
            at com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:73)
            at com.iplanet.ias.appclient.Main.<init>(Main.java:339)
            at com.iplanet.ias.appclient.Main.main(Main.java:93)
    Dec 30, 2003 2:06:01 PM com.iplanet.ias.appclient.Main <init>
    WARNING: ACC010: Make sure the server port is not disabled and that you are looking up a valid nameI would appreciate any help or hint to solve this problem - or to
    find more debugging information; I'm sure it works somehow...
    Greetings,
    Bernd.

    Hi Bernd ;-)
    gotta give myself the answer (and keep it here for later reference). This is what I needed to do in order to make it work:
    1) Package the appclient.jar as described in the manual and unpack it on the remote host.
    2) Package the SDK that the Appserver is using (/usr/java/j2sdk1.4.1_04 in my case) and also unpack the directory tree somewhere on the remote host.
    On the remote host (where appclient.jar was unpacked):
    3) Adjust the paths in conf/asenv.conf and make sure to specify the SDK copied from the Appserver's host in the variable AS_JAVA.
    4) In bin/appclient replace %CONFIG_HOME% with the config path, remove the if-block after that line ("environment set by tools") and add :/path/to/j2ee.jar to the JVM_CLASSPATH variable.
    5) Edit config/sun-acc.xml: Replace %%%SERVER_ROOT%%% with the path where appclient is installed and (in my case) make sure to use IP addresses for %%%SERVER_NAME%%% in the following line:
    <target-server name="%%%SERVER_NAME%%%" address="%%%SERVER_NAME%%%" port="%%%ORB_LISTENER1_PORT%%%"/>Sounds weird and far-fetched, but it works now. :-)
    Bernd.

Maybe you are looking for

  • When does a method do too much?

    so I'm trying to write cleaner and more effective code, but one of the problems i always find myself in is that i never know how large a method should be. obviously its relative to the job it's doing and such, but i was wondering if there was some so

  • Crashing after Log and Transfer

    I am experiencing a FCP crash after using Log and Transfer to import P2 files.  The material is on an external FW800 drive.  I go to Add Custom Path in the Log and Transfer dialog box, point the software to the CONTENTS folder of each captured P2 car

  • What is wrong with my LCD? Help!

    Hi guys, Hoping you can give me some advice on what is going on with my screen. I have attached a photo but basically anything that is usually white on the screen now shows up as vertical blue lines. It is not a software/driver problem as it occurs o

  • Tween programmed animation

    Hi, I want to fade a clip that has some dynamic animations inside (attatched clips etc). It seems to me that the whole clip won't do an alpha tween anymore when using a keyframe tween. Are there any rules to know when it does and when not? TIA

  • HELP! My After Effects project is complete, but when I render out and playback the video is a lot faster then the original playback.

    I have finished my After Effects project. The project includes a lot of text and fade ins and outs and looks perfect in the playback. But once I render and playback with Quicktime the video does not look the same. The animations are very jumpy. Pleas