Recursive CMR problem in J2EE RI 1.3.1

I have to create Category EJB in my project. Which is recursive object because it may be root category or branch category.
In my Bean Class, I declared:
// CMP Fields
//CMR Fields
public abstract Collection getSubCategories();
public abstract void setSubCategories(Collection categories);
And in deployment descriptor, I declare recursive relationship for this bean:
<ejb-relation>
<ejb-relation-name>Category-Category</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>Category</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>Category</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>subCategories</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>Category_2</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>Category</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
At my knowledge, the container has to create relationship table corresponding to this relationship. This table has two columns, which are stored PK of parent and its children. But in my deploytool, it has only one column. What is happen? Any one help me, please..:(

Hi,
I have been trying to solve the very same problem for some time, could you let me know the answer to this. If you are feeling extremely generous, could you post/email the source code for the category EJB to me.
I would be eternally grateful
Anthony Miller
[email protected]

Similar Messages

  • Urgent! Serious problem with J2EE Classloader!

    Hi all,
    I'm having a serious problem with j2ee Classloading.
    I have "inherited" a J2EE application where all business classes (invoked by the EJB) are placed in the Application's Server classpath (Weblogic 8.1.4).
    Very bad because every time a class is changed the a.s. must be restarted.
    So I re-enginereed the package putting the business classes in a jar that is referenced by the EJB's MANIFEST file.
    This way all the classes would be loaded by the EJB classloader and no need to start/stop weblogic.
    Unfortunately it's not such !! I discovered that all business classes are loaded via REFLECTION
    Object objCommand = objClass.newInstance();
    Object[] param = new Object[1];
    param[0] = aDataContainer;
    objDataContainerReturn = (DataContainer) objMethod.invoke(objCommand,param);
    and the application server cannot find them using the standard J2EE Classloader mechanism.
    java.lang.reflect.InvocationTargetException
    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:324)
    at irma.business.Dispatcher.callService(Dispatcher.java:70)
    Caused by: java.lang.NoClassDefFoundError: irma/utility/log/LogPrintStream
    at irma.business.service.LoginService.login(LoginService.java:79)
    On the other hand they're found if I put the classes on the application server classpath.
    Has anybody got advice for this ? Should I refactor the application giving up reflection ?
    Thanks a lot in advance.

    Reflection uses the classloader as well so it should work fine.
    A common cause of a NoClassDefFoundError is something in a parent classloader that refers to something only available in a child loader.
    For instance, do you have any of your application classes which are in the $CLASSPATH but reference something that is only (now) in the business.jar in your ear?
    -- Rob
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Problem About J2EE RI and PetStore Demo

    Hello ^^
    I have a problem about j2ee & petstore.
    I trird to set up sun j2ee RI 1.3.1 + pet store on win2000 or redhat.
    Everything run ok. But when I changed web port 8000 to any port (included
    80),
    j2ee ri server showed the error message below :
    java.net.ConnectException: Connection refused: connect
    java.security.PrivilegedActionException: javax.servlet.ServletException:
    An error occurred while evaluating custom action attribute "items" with
    value "${catalog.categories.list}": An error occurred while getting
    property "categories" from an instance of class
    com.sun.j2ee.blueprints.catalog.client.CatalogHelper
    I used root to start j2ee & cloudscape on linux,
    and changed database to postgresql, too.
    but the error is the same.
    How to solve this problem ??
    Thank you ~~
    Jovi

    Hi,
    I dont know how useful my reply would be since the question was posted about 2 yrs back, but just wanted to reply in case somebody faces the same problem.
    If you change the web port to some other port (other than 8000) then please check the sun-j2ee-ri.xml files. Actually the CatalogDAOSQL.xml is read using a url which includes the port you are running the server on. So, you need to change the port even in the sun-j2ee-ri.xml file.
    One of the sun-j2ee-ri.xml files, where you need to make the change is in the $PETSTORE_HOME/src/apps/petstore/src/sun-j2ee-ri.xml file.
    Other one is in $PETSTORE_HOME/src/apps/supplier/src/sun-j2ee-ri.xml file.
    Look for other sun-j2ee-ri.xml files where the url is hardcoded. (I think the two sun-j2ee-ri.xml files mentioned above, are the only places you need to make the change, but still look for other files in case i have missed)
    Change those urls and redeploy the ears.
    Hope this solves the problem.
    Regards,
    Archit

  • Shared folder access problem in j2ee application

    Hi,
    We are using SAP Netweaver 04s JAVA system.
    In our j2ee application we are trying to access shared resource(file), but ejb is giving exception. Our code is as follows:
    File srcDir = new File("\machine_namefolder");
    if(!srcDir.exists())
    {throw new Exception("directory does not exist", srcSys);
    It gives expection "FileNotFoundException".
    The same j2ee application is working fine when deployed on IBM Websphere.
    We trired to access same shared path from windows, it is also working.
    Please help us. Thanks in advance.
    --sagar

    Hi,
    Please follow Shared Folder acess problem in J2ee application.
    -Vladimir

  • Problem starting j2ee RI

    I've got a problem starting j2ee RI. I've got a NumberFormatException
    Does anyone has an idee?
    j2ee -verbose
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.
    java:48)
    at java.lang.Long.parseLong(Long.java:323)
    at java.lang.Long.<init>(Long.java:559)
    at com.sun.enterprise.server.J2EEServer.readSecureSeed(J2EEServer.java:8
    49)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:157)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.
    java:48)
    at java.lang.Long.parseLong(Long.java:323)
    at java.lang.Long.<init>(Long.java:559)
    at com.sun.enterprise.server.J2EEServer.readSecureSeed(J2EEServer.java:8
    49)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:157)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: For input string: ""
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: For input string: ""
    Error executing J2EE server ...

    It appears that there is a file that is @ $J2EE_HOME/lib/security/secure.seed that is corrupted or empty. THE RI doesn't check if the file is valid. The solution is to delete the file and allow the RI to recreate the file.

  • WebSAPconsole - problem with J2EE

    I am trying to install WebSAPconsole (GUI 6.40), but I have some problems with J2EE (SAPJ2EE620C_39-10001433.sar). OS is Win XP Pro Polish.
    After instalation of J2EE I've tried to start dispatcher and server, and next check HTTP service - but there is no listening on 80 port, and there is no listening on p4 port (3011 - because of this no possibility to start visual administrator).
    Dispatcher and server are listening on ports 2055 and 2077, and I have 2 java.exe processes in Task Manager...
    No any other software occupying 80 and 3011 ports.
    Any suggestions?

    Hello vjara,
    I' new to SAP.Could you please tell me where I can find jstartup/trimming_properties = standard in the instance profile.I try to install WS 6.4 sneak preview and I'm getting error,Unable to start SAP J2EE Engine at step 22.I would appreciate for your help and guidance
    Thanks
    Subha

  • Problem reinstalling J2EE 1.4 on Windows XP

    Hi everyone,
    I installed once the j2ee 1.4 package without any problems, but I had to uninstall it.
    Now during the last 3 days I've been trying to reinstall it, but everytime I try I got the same error during the installation process:
    ERROR - default domain creation returned following exception: abnormal subprocess termination: Detailed Message:> was unexpected at this time.
    was unexpected at this time.---------------------------------------------------------------------------------------
    Can someone help me with this?
    P.S.:
    Everytime I have unistalled it, I have deleted the folder (C:\Sun) delete the "productregistry" and nothing seems to work.. Please help me!

    Check your PATH environment variable - it is likely that > character referenced in the error message is coming from there. So, clean up that entry from the PATH and rerun the installation.

  • Crystal Report problem with J2EE - OutOfMemory

    Dear All,
    I am having a problem about generating PDF from J2EE (Tomcat, Java 1.4)  WebApplication by Crystal report.
    When generating a PDF it sometimes got an out of memory error.
    However the Web Application is still working fine, just when regenerate the same crystal report the out of memory error occur again. when i generate the other report it works fine.
    Please help .
    Many Thanks

    Hi,
    It's a good idea to set the minimum and maximum heap size to the same value. In any case, don't let the minimum heap size exceed the maximum.
    Stop Tomcat server, set environment variable CATALINA_OPTS, and then restart Tomcat.
    Look at the file tomcat-install/bin/catalina.sh or catalina.bat for how this variable is used.
    For example,
    set CATALINA_OPTS="-Xms512m -Xmx512m"  (Windows)
    export CATALINA_OPTS="-Xms512m -Xmx512m" (ksh/bash)
    setenv CATALINA_OPTS "-Xms512m -Xmx512m"  (tcsh/csh)
    In catalina.bat or catallina.sh, you may have noticed CATALINA_OPTS, JAVA_OPTS,
    or both can be used to specify Tomcat JVM options.
    What is the difference between CATALINA_OPTS and JAVA_OPTS?
    The name CATALINA_OPTS is specific for Tomcat servlet container,
    whereas JAVA_OPTS may be used by other java applications (e.g., JBoss).
    Since environment variables are shared by all applications, we don't want Tomcat to inadvertently pick up the JVM options intended for other apps. I prefer to use CATALINA_OPTS.
    You have specified size by a capiital "M" ?(3072M) use "m".
    Please let me know the results.
    Regards,
    Neeraj

  • CMR Problem: Can you create CMR beans in different packages?

    I created a Related Entity bean (ClassA) and unchecked the boxes that indicated it would create the other entity beans that were linked to the table.
    I then created new Entity beans (ClassB and ClassC) in separate packages. I then set up the relationships in the ClassA Related module. Did the mappings, etc.
    When I compile the application I get an error message indicating that the accessor methods (which the IDE auto-generates!) to what I have set as CMR fields can only be for CMP or CMR fields!
    I've tried the PartsSupplier2CMR example and deployed it, but it is a flat tree.
    Has anyone else come across something like this??
    Thanks

    I copied and pasted your code as well as made c08 and c09 directories. I had no errors compiling. I am using NT, but it appears that your problem is Classpath related. You can try to CD to the C:\Java directory and compile using "javac c09\Test.java" That's the command I used.

  • Problem creating j2ee web service

    Hello. I'm having an issue deploying a given java class as a web service. I believe that problem is caused because, in the generated WSDL, the target namespace is set via the package name (i.e. http://myapplication.mycompany.com ), which is not a valid host. I tried changing every occurrence of that URL, in the WSDL, to the context root of my local host, but it still can't resolve the bindings. Given the following deployment message, what should my target namespace be:
    (from OC4J startup):
    Target URL -- http://localhost:8988/myApp-myProject-context-root/MyWebServiceSoapHttpPort
    06/06/12 13:34:17 Web service MenuWebService has been started on the embedded server
    06/06/12 13:34:17 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    Any help would be appreciated. Thanks. Take care.

    here are the classes:
    service class:
    package com.test.service
    public class MenuService {
        public MenuService() {
        public String echo(String payload) {
            return payload;
        public ViewRight echoViewRight(ViewRight viewRight) {
            return viewRight;
    }view right class:
    package com.test.service
    public class ViewRight {
      private Integer id;
      private String name;
      private String description;
      private String members;
        public ViewRight() {
      //setters/getters
    }Here's the exception I get (if I just try to inovke the string echo method):
    java.rmi.RemoteException: Error parsing envelope: (1, 1) Start of root element expected.; nested exception is:
         javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
         at menusproject.proxy.runtime.MenuWebServiceSoapHttp_Stub.echo(MenuWebServiceSoapHttp_Stub.java:100)
         at com.test.gui.menus.service.MenuWebServiceSoapHttpPortClient.<init>(MenuWebServiceSoapHttpPortClient.java:19)
         at com.test.gui.menus.service.MenuWebServiceSoapHttpPortClient.main(MenuWebServiceSoapHttpPortClient.java:27)
    Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)
         at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
         at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:713)
         at oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:673)
         at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:664)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:201)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at menusproject.proxy.runtime.MenuWebServiceSoapHttp_Stub.echo(MenuWebServiceSoapHttp_Stub.java:77)
         ... 2 more
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
         at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)
         ... 9 more
    Message was edited by:
    sean_m_flannery

  • CMR problem

    Hi friends
    I am using weblogic,ejb ,XDoclet...Doing one CMR relation program
    I have tow tables
    1.Order_detail
    2.Order_header
    In order_detail table i have PK serial number and FK po_no
    In order_header table i have PK po_no
    It is like order has many items program
    Im CMR relation i gave
    bold/**
         * <!-- begin-user-doc -->
         * CMR Field items
         * Returns the items
         * @return the items
         * <!-- end-user-doc -->
         * <!-- begin-xdoclet-definition -->
         * @ejb.interface-method
         * view-type="local"
         * @ejb.relation
         * name="order_header"
         * role-name="Order-contains-Items"
         * target-ejb="OrderDetail"
         * target-role-name="item-contained-in-order"
         * target-cascade-delete="yes"
         * @weblogic.target-column-map
         * foreign-key-column="po_no"
         * key-column="po_no"
         * <!-- end-xdoclet-definition -->
         * @generated
    public abstract java.util.Collection getItems();
    * <!-- begin-user-doc -->
    * Sets the Items
    * @param java.util.Collection the new items value
    * <!-- end-user-doc -->
    * <!-- begin-xdoclet-definition -->
    * @ejb.interface-method
    *           view-type="local"
    * <!-- end-xdoclet-definition -->
    * @generated
    public abstract void setItems(java.util.Collection items);*bold*
    I am getting the error of
    When a cmp-field and a cmr-field (relationship) are mapped to the same column, the setXXX method for the cmp-field may not be called. The cmp-field is read-only.
    Please help me to sort out this.
    thanks in advance

    i had this same problem of recent. i never included the cmp(setter and getter of fk). i worked with the cmr
    setter and getter. it worked but do not know if this was a standard.
    Sumelong

  • Jsp taglib problems in J2ee server  of j2sdkee1.3

    Fresh from solving the problems with usebean in jsp, I again got a problem with the custom tags of JSP
    I am using Jdk1.3 and j2sdkee1.3, windows98
    The class file is stored in a package called my in the c:\j2sdkee1.3\lib\classes\my folder
    and the tld and jsp file stored in c:\j2sdkee1.3\public_html folder
    when I access the atm.jsp page, I got this error message
    A Servlet Exception Has Occurred
    org.apache.jasper.compiler.ParseException: End of content reached while more parsing required: tag nesting error?
    Here is the ATMJsp.tld code
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>1.1</jspversion>
         <shortname>ATMJsp</shortname>
         <info>a tag library for the atm details</info>
         <tag>
              <name>ATM</name>
              <tagclass>my.atmtag</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>Outputs of the ATM Counter</info>
         </tag>
    </taglib>
    I try:
    When I put the <bodycontent> tags below the <info> tags, I got the error message that the tag doesn't allow "bodycontent" here
    I don't know what caused the problem ... is there some mistake in the above code?
    Include other file to make it more clear---* atm.jsp and atmtag.java
    atm.jsp
    <%@ page import="my.atmtag" %>
    <%@ taglib uri="ATMJsp.tld" prefix="atmjsp" %>
    <%@ page errorPage="errorpage.jsp" %>
    <!DocType HTML Public "-//W3C//DTD// HTML 4.0 Translational//EN">
    <html>
    <head></head>
    <body>
    <h3 align=center>ATM counters that need cash</h3>
    <table><tr>
    <td></td>
    <td><atmjsp:ATM></td>
    </tr>
    </body>
    </html>
    atmtag.java
    package my;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    import java.util.*;
    //tag handler
    public class atmtag extends TagSupport
         Connection connect=null;
         Statement state=null;
         ResultSet result=null;
         public atmtag() throws ClassNotFoundException
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         public int doStartTag() throws JspTagException
              return EVAL_BODY_INCLUDE;
         public int doEndTag() throws JspTagException
              try
                   JspWriter out=pageContext.getOut();
                   connect=DriverManager.getConnection("jdbc:odbc:EarnestBank","","");
                   String strquery="select cCounter_id, cAddress, mCashBalance from Counter where mCashBalance<=10000";
                   state=connect.createStatement();
                   ResultSet result=state.executeQuery(strquery);
                   String sid=null;
                   String saddress=null;
                   String sbalance=null;
                   Vector v=new Vector();
                   while(result.next())
                        sid=result.getString(1);
                        saddress=result.getString(2);
                        sbalance=result.getString(3);
                        v.add(sid);
                        v.add(saddress);
                        v.add(sbalance);
                   for (int i=0; i<v.size();i++)
                        String str=(String)v.elementAt(i);
                        pageContext.getOut().write(str);
              catch(Exception ex)
              return EVAL_PAGE;
    Pls help me to get through this hurdle
    Thanks

    1) To handle <bodycontent> you should inherit from BodyTagSupport
    class
    2) You should use your bean like: <td><atmjsp:ATM/></td>
    with closing slash - it's bodyless tag - this mistake
    causes JSP compiler to report error
    Enjoy!
    Paul

  • Problem with J2EE

    Hi, I am new to Java Enterprise Edition. I am trying to install J2EE 1.3.1 on Win 2000 with service pack 4, and I am getting the following error
    16 bit Windows Subsystem
    c:\WINNT\SYSTEM32\AUTOEXEC.NT. The system file is not suitable for running MSDOS and Microsoft Windows applications. Choose 'Close' to terminate the application.
    Plz help me to solve this problem.

    Open that autoexec.nt and check if it matches with this:
    @echo off
    REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.
    REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a
    REM different startup file is specified in an application's PIF.
    REM Install CD ROM extensions
    lh %SystemRoot%\system32\mscdexnt.exe
    REM Install network redirector (load before dosx.exe)
    lh %SystemRoot%\system32\redir
    REM Install DPMI support
    lh %SystemRoot%\system32\dosx

  • Intermittend connection problem from J2EE (separate) engine to ABAP

    When i run the test report FP_CHECK_DESTINATION_SERVICE the first time it works and returns the number of bytes transmitted. The second time it does not . The third time it works , the fourth time it does not etc etc etc  No matter how long I wait in between the attempts so not random.
    Any ideas would be helpfull.
    The error i get on the java side is :
    com.adobe.ads.destination.DestinationException: IO error detected while opening DEST connection: http://servername.domain.nl:4100/sap/bc/fp/form/layout/FP_TEST_00.XDP?fp-language=DE
            at com.adobe.ads.destination.Destination.readUrlStream(Unknown Source)
            at com.adobe.ads.destination.Destination.readTemplate(Unknown Source)
            at com.adobe.ads.data.DestURLData.setData(Unknown Source)
            at com.adobe.ads.data.DestURLData.<init>(Unknown Source)
            at com.adobe.ads.data.PDFData.createFromURL(Unknown Source)
            at com.adobe.ads.data.PDFData.create(Unknown Source)
            at com.adobe.ads.request.Template.setPDFData(Unknown Source)
            at com.adobe.ads.request.Template.initialize(Unknown Source)
            at com.adobe.ads.request.Renderer.initializeTemplates(Unknown Source)
            at com.adobe.ads.request.Renderer.execute(Unknown Source)
            at com.adobe.BaseADSRequest.doWork(Unknown Source)
            at com.adobe.AdobeDocumentServicesWorker.processRender(Unknown Source)
            at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)
            at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
            at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
            at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
            at sun.reflect.GeneratedMethodAccessor339.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
            at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
            at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
            at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
            at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
            at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
            at SoapServlet.doPost(SoapServlet.java:51)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
            at java.security.AccessController.doPrivileged1(Native Method)
            at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    Caused by: org.w3c.www.protocol.http.HttpException: org.w3c.www.protocol.http.HttpException: <b>Unable to contact target server servername.domain.nl:4100 after 1 tries.</b>
            at org.w3c.www.protocol.http.HttpBasicServer.runRequest(Unknown Source)
            at org.w3c.www.protocol.http.HttpManager.runRequest(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.connect(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.a(Unknown Source)
            at org.w3c.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
            ... 41 more
    p.s. I changed the real server name for servername.domain.nl in the output

    After restarting the entire J2EE engine, this strange problem disappeared.

  • Problem accessing J2EE DataSource with BC4J

    I'm trying to create MySQL database connection with BC4J via a J2EE DataSource. But without success.
    The errors I receive:
    Launching OC4j...
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    2003-03-18 09:40:36 ApplicationModuleProvider - unspecified properties:
    password drivertype user sid connectionstring host encryptiontype port
    ApplicationModuleProvidernull
    java.lang.NullPointerException
    at oracle.cle.persistence.ConnectionProvider.getConnectionString(Connect
    ionProvider.java:606)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.createModule(A
    pplicationModuleProvider.java:331)
    at oracle.clex.persistence.bc4j.ApplicationModuleProvider.getConnection(
    ApplicationModuleProvider.java:200)
    at oracle.cle.persistence.ConnectionProvider.getConnection(ConnectionPro
    vider.java:669)
    at oracle.cle.persistence.ConnectionManager.getConnection(ConnectionMana
    ger.java:607)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:168)
    at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
    nnector.java:92)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getC
    onnection(DataSourceHandlerImpl.java:331)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getA
    pplicationModule(DataSourceHandlerImpl.java:874)
    at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getD
    ataSourceSet(DataSourceHandlerImpl.java:462)
    at oracle.jheadstart.process.GetDataSourceSet.retrieveSimple(GetDataSour
    ceSet.java:538)
    at oracle.jheadstart.process.GetDataSourceSet.persist(GetDataSourceSet.j
    ava:502)
    at oracle.jheadstart.process.PersistingDataSource.start(PersistingDataSo
    urce.java:251)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Process.start(Process.java:97)
    at oracle.cle.process.GenericProcess.start(GenericProcess.java:82)
    at oracle.cle.process.ParentProcess.start(ParentProcess.java:218)
    at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
    at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
    at oracle.cle.process.Service.start(Service.java:389)
    at oracle.clex.process.controller.HttpServletController.doPost(HttpServl
    etController.java:439)
    at oracle.jheadstart.process.controller.JhsHttpServletController.doPost(
    JhsHttpServletController.java:70)
    at oracle.clex.process.controller.HttpServletController.doGet(HttpServle
    tController.java:849)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:797)
    at java.lang.Thread.run(Unknown Source)
    ApplicationModuleProvider: ApplicationModuleProvidernull
    GetDataSourceSet Exception: A Connection could not be made for class: oracle.emp
    depdemo.resource.Department and sessionId: e3c568a09dec48d7b5a6cb86d041d22b orig
    inal message is: ApplicationModuleProvider: ApplicationModuleProvidernull
    See also thread MySQL at the JHeadstart forum.
    data-sources.xml (oc4j\j2ee\home\config):
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="OracleDS"
              location="jdbc/OracleCoreDS"
              xa-location="jdbc/xa/OracleXADS"
              ejb-location="jdbc/OracleDS"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="scott"
              password="tiger"
              url="jdbc:oracle:thin:@172.16.2.240:1521:dev2"
              inactivity-timeout="30"
         />     
    cle-providers.xml:
    <cle-providers>
    <provider name="EmpDepServiceProvider" class="oracle.clex.persistence.bc4j.ApplicationModuleProvider">
    <property name="persistencebase" value="oracle.empdepdemo.persistence.bc4j"/>
    <property name="modulename" value="oracle.empdepdemo.persistence.bc4j.Bc4jModule"/>
    <property name="failover" value=""/>
    <property name="scope" value="request"/>
    <property name="managestate" value="false"/>
    <property name="configuration" value="Bc4jModuleLocal"/>
    </provider>
    </cle-providers>
    bc4j.xcfg:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="Bc4jModuleLocal">
    <DeployPlatform>LOCAL</DeployPlatform>
    <DBconnection>jdbc:oracle:thin:@localhost:1521:orcl</DBconnection>
    <JDBCName>ScottTiger</JDBCName>
    <jbo.project>empdep</jbo.project>
    <AppModuleJndiName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</AppModuleJndiName>
    <ApplicationName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</ApplicationName>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="ScottTiger">
    <ENTRY name="JDBC_PORT" value="1521"/>
    <ENTRY name="ConnectionType" value="JDBC"/>
    <ENTRY name="HOSTNAME" value="localhost"/>
    <ENTRY name="user" value="Scott"/>
    <ENTRY name="ConnectionName" value="ScottTiger"/>
    <ENTRY name="SID" value="orcl"/>
    <ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
    <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
    </ConnectionDefinition>
    </BC4JConfig>

    Thank you Dhiraj,
    On my Oracle database it is working. But on MySQL I still have the same problem.
    I'm still ivestigating it.
    Thanks anyway.
    Marcel

Maybe you are looking for

  • Issue in invoking a proxy service

    Hi, This is my problem. I have a proxy service which works fine ,giving the desired response when I test from OSB console. But if I try to call the same service from REST client/Java client I get the response as "500 Internal Server Error". What coul

  • HT1152 When I burn a DVD from iMovie, it shows up as just a series of folders when playing it back on a TV/DVD player..What is the problem?

    Help!! I am a new Mac user and have Os X Lion.  My son and I are starting to use imovie and have downloaded several video's from his new HD digital Bloggie camera.  I just want to burn a basketball game to a DVD.  So I went into imovie, followed the

  • WLSTException: Cannot connect to Node Manager

    Hello, I am trying to connect to my nodemanager via the WLST rather than the service and get the following error. (I am using custom keystores instead of Demo) wls:/offline> nmConnect('weblogic','1234',' xx.xx.xx ','5556','base_domain',':/Oracle/Midd

  • Settings for order type in planned orders

    Dear All, Where can i customise the order types for planned order.? My scenario is.. i can not send complete product in vehicle , which has to be dismantle and send in different vehicle, so the different invoices are required. i can dismantle  the pr

  • Reg script condense prob?

    Hi iam trying to modify MEDRUCK for request for quotation printing.  in the standard script i was trying to print all variables in one line . for dng that i have to condense variable . how can i condense variables ? i tried with by giving &variable(c