Using jndi.properties with weblogic 6.1

Apologies if this is a basic question - I am new to Weblogic.
I have successfully got a test EJB working with Weblogic 6.1 using a properties object to set up my JNDI InitialContext.
In the weblogic examples I've downloaded it says you can also use a jndi.properties file to do this. I have set up a jndi.properties file, which is in the classpath for my class calling the EJB. But when I do my jndi .lookup("ejbname") I get the error:
javax.naming.CommunicationException: Can't find SerialContextProvider
The weblogic documentation at:
http://e-docs.bea.com/wls/docs61///rmi_iiop/API_rmi_iiop.html
refers to using jndi.properties and says to look at:
http://edocs.bea.com/wls/docs61/jndi/jndi.html
But at this page there is no mention of the jndi.properties method.
I'd be grateful for any suggestions - in particular whether it is possible to use this method of configuring the JNDI setup.
I'm running wlserver6.1 on a Windows 2000 PC, using JDK 1.3.1
My jndi.properties file looks as follows:
java.naming.property.names=java.naming.factory.initial,java.naming.provider.url
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
java.naming.provider.url=t3://localhost:7001

It is not WebLogic-specific. See
http://java.sun.com/j2se/1.3/docs/api/javax/naming/InitialContext.html
Alison Tunley <[email protected]> wrote:
Apologies if this is a basic question - I am new to Weblogic.
I have successfully got a test EJB working with Weblogic 6.1 using a properties object to set up my JNDI InitialContext.
In the weblogic examples I've downloaded it says you can also use a jndi.properties file to do this. I have set up a jndi.properties file, which is in the classpath for my class calling the EJB. But when I do my jndi .lookup("ejbname") I get the error:
javax.naming.CommunicationException: Can't find SerialContextProvider
The weblogic documentation at:
http://e-docs.bea.com/wls/docs61///rmi_iiop/API_rmi_iiop.html
refers to using jndi.properties and says to look at:
http://edocs.bea.com/wls/docs61/jndi/jndi.html
But at this page there is no mention of the jndi.properties method.
I'd be grateful for any suggestions - in particular whether it is possible to use this method of configuring the JNDI setup.
I'm running wlserver6.1 on a Windows 2000 PC, using JDK 1.3.1
My jndi.properties file looks as follows:
java.naming.property.names=java.naming.factory.initial,java.naming.provider.url
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
java.naming.provider.url=t3://localhost:7001--
Dimitri

Similar Messages

  • Using JDK1.4 with Weblogic 6.1

    Does ne1 know of any documents(Installion Procedure...) available on Using JDK1.4 with Weblogic 6.1
    I need to upgrade from JDK 1.3 to 1.4 using Wlserver6.1
    Thanks,
    Lloyd
    [att1.html]

    Lloyd,
    The JDK 1.4 is not certified neither supported with WebLogic Server 6.1.
    Lloyd wrote:
    Does ne1 know of any documents(Installion Procedure...) available on
    Using JDK1.4 with Weblogic 6.1
    I need to upgrade from JDK 1.3 to 1.4 using Wlserver6.1
    Thanks,
    Lloyd
    Thank you,
    Laurent Goldsztejn
    Developer Relations Engineer
    BEA Support

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • Calling package from java using JNDI properties

    Hi there,
    I have created an interface to transfer data from oracle to JMS XML Queue. It is inside a package and have generated a scenario.
    The scenario works well when executed from the ODI designer. When I execute it from java it throws an error. The error is
    java.sql.SQLException: Cannot load connection class because of underlying exception: 'javax.jms.JMSException: Cannot create the initial JNDI context
    Is there any ways to set the JNDI properties, (any set methods for ODIConnection object)
    Cheers

    Are you serious with that question? Did you try to build the web service client before? Because this is exactly the same. Try to find "building web service clients" instead "Calling BPEL from java". By default (probably) every BPEL process has both WSIF and SOAP end points, just use correct WSDL address.

  • How to use jndi datasource on Weblogic instead of adding a DB data source

    Hi All,
    version: 11.1.1.4
    I am trying to figure out how in my ADF applications I can use an existing jndi datasource out on our weblogic servers instead of having to bury the Database db source in my adf applications. Like SOA I would like to reference the DB directly during design so I can pull in entities and build view objects, but when I deploy I want it to reference the jndi datasource out on the weblogic server.
    Is this possible? If so I am not sure how to configure it like I would a DB adapter in SOA.
    As always appreciate the info.
    Thanks,
    S

    If you use ADF in the model layer (application modules) you can configure them to use JNDI Datasources. Just right click on the application module and select 'Configurations...'. In the next dialog you see all the configurations currently available (one named xxxxxlocal and one named xxxxxshared at least). Select the local and hit the edit button. This open the DB connect dialog where you can change the connection from JDBC URL to JDBC Datasource (JNDI). Save your work and when you now start the app it will use the JNDI name.
    Timo

  • Can I use ejb3.0 with weblogic 8.1

    I am new to ejb3.0.weblogic 8.1 is installed on my system.I just wanted to know can I use weblogic8.1 to deploy ejb3.0 application.
    Thanks
    Sanju

    You can use EJB 3 with WLS9.2 beta http://e-docs.bea.com/wls/docs92/ejb30/overview.html
    With WLS8.1 you are stuck w/ EJB 2.x

  • Using URL alias with Weblogic - How do you do it?

    Bear with me I have zero experience with Weblogic.
    We use Weblogic as a component of Hyperion Planning, meaning for Hyperion Planning weblogic is installed and acts as the java application AND webserver.
    Currently our Hyperion Planning URL is http://servername:port as per security audit we need to use an alias so that users do not have straight access to the direct URL link.
    Therefore we created on the DNS a URL alias BFS.companyname.com. Now I need to associate this alias with the Planning URL which is in weblogic.
    I have logged into the weblogic admin console and see 'Virtual Hosts', I enter in the host name BFS.companyname.com and select the target which is the Hyperion Planning workspace (http://servername:port) apply changes yet nothing occurs.
    If anyone has done a URL direction could you please post the instructions on how to do so...thanks
    JTS

    Just to share this will all. The URL alias redirection is done within Apache webserver and not the Weblogic program.
    Edit the httpd.conf file with this information below:
    1. Configure Apache to listen on port 80:
    a. Back up the configuration file, e:\Hyperion\common\httpServers\Apache\2.0.52\conf\ht tpd.conf
    b. Add "Listen 80" to the Listen section.
    c. In the Virtual Hosts section, (around line 955), uncomment the line, "NameVirtualHost *:19000"
    d. Add "NameVirtualHost *:80"
    e. Uncomment the "<VirtualHost *:19000>" code block, down to "</VirtualHost>"
    f. Edit and add the following block to Virtual Hosts
    <VirtualHost *:80>
    ServerName www.myserver.com
    DocumentRoot e:/Hyperion/common/httpServers/Apache/2.0.52/htdocs
    </VirtualHost>
    g. Restart Apache.
    2. Redirect Web Page
    a. Create a page in the virtual web directory, index.html that contains the following html code:
    <html><head>
    <meta http-equiv="Refresh" content="0; url=http://myserver:19000/workspace/index.jsp">
    </head><body>
    </body></html>
    b. Have someone in NSE alter or create a DNS entry that redirects "hyperion" to the appropriate IP address. The default page (index.html) on the default port (80) will execute the redirect in the html document above, launching the workspace login screen.
    JTS

  • Calling BRM from UDF using JNDI lookup with @EJB annotation

    Hi Experts
    I am trying to implement a UDF to invoke my BRM Rules set via JNDI Lookup instead of a SOAP Channel lookup.
    I have had a look at the following links/docs:
    Calling BRM from UDF using Public API
    http://www.gleanster.com/system/resources/W1siZiIsIjIwMTIvMDgvMDcvMjAvNDcvNTAvNDMvVGhpbmdzX1lvdV9TaG91bGRfS25vd19hYm91dF9TQVBfTmV0V2VhdmVyX0JSTS5wZGYiXV0/Things%20You%20Should%20Know%20about%20SAP%20NetWeaver%20BRM.pdf
    For item 1 above, the example looks really good, but it doesnt explain how I get access to the following required imports from my UDF:
    import com.sap.brms.qrules.ejb.*;
    import com.sap.brms.qrules.engine.AbstractProject;
    import com.sap.brms.qrules.engine.RuleEngine;
    import com.sap.brms.qrules.engine.RulesetContext;
    import javax.ejb.EJB;
    The second document is really good as well, but I could not figure out how to get it to work from my UDF.
    So, can anyone help me to understand specifically what is required to get this to work?
    Is is possible to invoke the rule set from my UDF?
    How do I give my UDF access to all the required jars/imports?
    I have manage to create a new DC (Development Component) with a public part and this enables me to get my code to compile on my local PC but I am not able to activate it due to the server not having access to the same java packages as my local copy.
    Any help would be greatly appreciated.

    You resolve the dependency by importing the required jars with using the dependency tab for the mapping program.
    As stipulated before, I have managed to resolve the dependency issue but I have now getting the same error as in the forum: Calling BRM from UDF using Public API
    The specific error is:
    com.sap.engine.services.cross.PortableRemoteObjectContainer.narrow(PortableRemoteObjectContainer.java:238)
    Has anyome manage to get invoke a BRM Ruleset using JNDI?

  • Problem while using PrepStmt.executeBach with Weblogic 6.0sp1 and

     

    - I'm getting the same error when I use WLS 6.0 SP1 & thin driver. I'm not
    getting this error when I use thin driver without WLS.
    - This is definitely a bug in WLS. As a workaround put classes.zip {that
    comes with oracle installation} before weblogic.jar in your classpath. This
    way, classloader will load the oracle supplied classes & everything will
    work smoothly
    Manav
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    Ruta wrote:
    Hi Joe
    I tried using a java standlaone program using prep stmts and oracle thin
    driver
    and it works just fine.
    So is this a bug with Weblogic? Finally connection pooling isapplication server's
    responsibility, isnt it..
    I am inlcined to conclude this coz connection pooling works fine withStatement.executeBatch()
    but not with prepStatement.executeBatch()
    How do I resolve this now.
    Thanks
    Ruta
    ...Does it not release the connectionOk. Now let me see the JDBC code example. I'll see what's up.
    Joe
    Joseph Weinstein <[email protected]> wrote:
    The first thing you should do is to reduce the problem to the simplest
    form.
    Write a tiny standalone program that just uses the thin driver
    directly,
    and repeats the code you are trying to run. This will eliminateWebLogic
    from the equation and see if it's an Oracle-only bug.
    Joe
    Ruta wrote:
    Hi,
    I am trying to do multiple inserts in a table using the
    PreparedStatement
    of JDBC2.0.
    I am using a TxDataSource of Weblogic server with a thin driver
    oracle
    pool. I
    am using the driver classes that come with the weblogic.jar.
    The problem is as follows:
    I can manage to succesfully do the executeBatch a few
    times..Interestingly
    it
    executes as many no. of times as the Initial capacity(not even maxcapacity) of
    my connection pool.
    Then it gives me the following error:
    java.sql.SQLException: java.sql.SQLException: Missing IN or OUT
    parameter
    at index::
    1
    at
    weblogic.jdbc.rmi.SerialStatement.executeBatch(SerialStatement.java:394)
    atcom.equitable.acs.common.ACSCtrlBean.saveSDECData(ACSCtrlBean.java:147)
    atcom.equitable.acs.common.ACSCtrlBeanImpl.saveSDECData(ACSCtrlBeanImpl.java:1
    10)
    atcom.equitable.acs.common.ACSCtrlBeanEOImpl.saveSDECData(ACSCtrlBeanEOImpl.ja
    va:30)
    atcom.equitable.acs.common.ACSCtrlBeanEOImpl_WLSkel.invoke(ACSCtrlBeanEOImpl_W
    LSkel.java:133)
    atweblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
    atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :128)
    atweblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
    atweblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
    java:118)
    atweblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
    7)
    atweblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    This Oracle error has error code 17041.. I could not find more infoon it, even
    from the Oracle site.
    I conclude that the connections are not getting relesed.
    But i ahve written
    con.close(); even
    con=null; (out of desparation :) )
    but still the connection is not released.
    I am getting the connection in the saveSDECData method
    I need to fix thsi problem ASAP..Any Help/Comments will be
    appreciated..
    Finally the most interesting part is :
    executeBatch works perfectly fine with the Statement object..
    so probably the culprit is the PreparedStatement implementation ofOracle..Can
    anybody validate this pls
    Regards
    Ruta--
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry andadvanced
    positions
    for people who want to work with Java, XML, SOAP and E-Commerceinfrastructure
    products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and SanJose
    CA.
    Send resumes to [email protected]
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advancedpositions
    for people who want to work with Java, XML, SOAP and E-Commerceinfrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San JoseCA.
    Send resumes to [email protected]

  • Using jndi.properties

    How can I use a jndi.properties file for JBoss within JDev? I haven't deployed one before and I'm not sure where it should go within JDev. Thanks.

    At home, this works for me:
    c:\jboss-3.2.3\server\default\conf
    and then add to your classpath

  • Using logging.properties in weblogic 10.3.6

    Hi
    I have created logging.properties under Middleware Home and the content of property file is below
    ####################Logging.properties file content####################
    handlers = java.util.logging.ConsoleHandler,java.util.logging.FileHandler.level=INFO
    # Handler specific properties.
    # Describes specific configuration info for Handlers.
    ############################################################# default file output is in user's home directory.
    java.util.logging.FileHandler.pattern =/apps/Oracle/debug.log
    java.util.logging.FileHandler.limit = 10MB
    java.util.logging.FileHandler.count = 10
    java.util.logging.FileHandler.formatter =java.util.logging.SimpleFormatter
    java.util.logging.ConsoleHandler.level = FINE
    java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
    # Facility specific properties.
    # Provides extra control for each logger.
    # For example, set the com.xyz.foo logger to only log SEVERE
    # messages:
    oracle.oes.common.level=FINEST
    oracle.jps.authorization.level=FINEST
    oracle.jps.authorization.debugstore.level=FINESTThen I edited startWeblogic.sh under <domain_home>/bin and added the following entries to it.
    if [ "${WLS_REDIRECT_LOG}" = "" ] ; then
    echo "Starting WLS with line:"
    echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy
    ${JAVA_OPTIONS} -Djava.util.logging.config.file=/apps/Oracle/Middleware/logging.properties -Duser.home=/home/oracle ${PROXY_SETTINGS} ${SERVER_CLASS}"
    ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS}
    ${PROXY_SETTINGS} ${SERVER_CLASS}
    else
    echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"
    ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${JAVA_OPTIONS} ->> Djava.util.logging.config.file=/apps/Oracle/Middleware/logging.properties -Duser.home=/home/oracle ${PROXY_SETTINGS} ${SERVER_CLASS} >"${WLS_REDIRECT_LOG}" 2>&1
    fiI restarted weblogic server and was hoping to see the log file in the location i specified in logging.properties. But I couldn't see the log file being generated.
    Any Help!!!

    Hi,
    The --component flag is missing.
    Solution
    Use the following command for Archiving Logs by File Size:
    beectl> modify_property --component CURRENTsite:LoggingProperties name MaxFileSize value <log_file_size>
    or
    Use the following command for Archiving Logs by Directory Size:
    beectl> modify_property --component CURRENTsite:LoggingProperties name MaxLogSize value <log_directory_size>
    Regards,
    Kal

  • Using JNDI Context with HTTP Tunneling (Detecting Connection Problems)

    Hi there,
    We are using connection to WL 5.1.0,SP6 cluster to create JNDI Context. Everything works fine until tcp/ip timeouts occur.
    After that ...
    Is there a way to subscribe for connection events?
    I don't want to use T3CLient for this, since WL advises not
    to do that. The recommended method is to create a Context and
    work with it.
    Help.
    For the curious here is one exception which we can not even
    trap. Is this fixed in SP8?:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ MBuf used after writeTo() called ]
         at weblogic.socket.MBuf.checkNotWritten(MBuf.java:68)
         at weblogic.socket.MBuf.writeTo(MBuf.java:140)
         at weblogic.socket.JVMSocketHTTPClient.sendMsg(JVMSocketHTTPClient.java:253)
         at weblogic.socket.JVMAbbrevSocket.sendOutMsg(JVMAbbrevSocket.java:348)
         at weblogic.socket.JVMAbbrevSocket.sendMsg(JVMAbbrevSocket.java:237)
         at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:420)
         at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:494)
         at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.java:155)
         at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:163)
         at weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:186)
         at weblogic.rmi.internal.BasicOutgoingRequest.sendRecv(BasicOutgoingRequest.java:23)
         at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:73)
         at

    Download Firmware 2.77 MB...
    TFTP Download , download both the files on the desktop only...
    Double click the TFTP.exe file and click run :
    For Server- Enter the IP Address of the router that you assigned.  By default, the router is 192.168.1.1...
    For Password- Enter the password you assigned the router. By default, the router’s password is “admin”.
    For File- Click the triple “…” button and browse for the .bin firmware file...
    Click Upgrade button to start upgrading.  A progress bar should show up to show the progress.
    Once the Upgrade is done press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router...

  • Account Password Changed When Using OCI Drivers With WebLogic 6.0

    Hello all,
    Could be I am losing my mind but I saw some strange bahavior and I was wondering if anyone could offer an explination. We're running BEA WL6.0sp2 on an HPUX box with both an 8.1.7 client and server installation for development. We noticed that when we try to use the OCI driver to connect to our database, the password for our account is being changed on connection. This is definitely repeatable as we demonstrated it for the DBAs while they yelled at us. I highly doubt there is anything in WL that would cause the problem and everything works fine with the Thin drivers, with the JDrivers provided by BEA and with the credentials from SQL+.
    Our problem is we need the Layer 2 OCI support. Is there something in the OCI client installation that would cause this behavior?

    Hello all,
    Could be I am losing my mind but I saw some strange bahavior and I was wondering if anyone could offer an explination. We're running BEA WL6.0sp2 on an HPUX box with both an 8.1.7 client and server installation for development. We noticed that when we try to use the OCI driver to connect to our database, the password for our account is being changed on connection. This is definitely repeatable as we demonstrated it for the DBAs while they yelled at us. I highly doubt there is anything in WL that would cause the problem and everything works fine with the Thin drivers, with the JDrivers provided by BEA and with the credentials from SQL+.
    Our problem is we need the Layer 2 OCI support. Is there something in the OCI client installation that would cause this behavior?

  • Using Java Logging with WebLogic 8.1

    Hello,
    I am having problems getting custom Handlers to load using the Java 1.4 Logging
    API. Apparently, the custom Handlers are loaded using the System classpath, not
    the applications classpath. This is not a viable option for us, does anyone know
    of a workaround for this?
    Thank you,
    Josh

    Hello Staffan,
    I've just sent to you the code source for this class. By the way I didn't try changing the swing JVM.
    Dom
    Hi,
    This looks like a bug to me. Does it matter which JVM
    you use for the swing application?
    To be able to find out more about the problem it
    would be great if we could look at the class files
    for
    com.dexia.sofaxis.prestations.business.TypeElementMate
    riel and all it's superclasses and interfaces. Please
    contact me offline at sta_larsen(at)hotmail (yes, I
    work for BEA, but I don't like spam...).
    Regards,
    /Staffan

  • Problems with JSP - using tag library with Weblogic 8.1

    I am getting the following error when I try to run a web application called "regain":
    /searchinput.jsp(2): Error in using tag library uri='regain-search.tld' prefix='search': cannot find tag class: 'net.sf.regain.ui.server.taglib.MsgTag'
    probably occurred due to an error in /searchinput.jsp line 2:
    <%@taglib uri="regain-search.tld" prefix="search" %>
    The classes that the .tld file points to are in the web applications WEB-INF/classes directory and I have put this path into my classpath environment variable (running Windows 2000 Server).
    This application runs fine on Tomcat.
    I can't not figure out whether is error is masking another error or what. I've tried using JDK and Jrockit for my web app - no luck.
    Please help! Thanks!

    anyone? :/

Maybe you are looking for

  • Unmountable Boot Volume on XP and screen goes blank before repair begins

    The XP Windows partition was seemingly working fine until I turned on the laptop this afternoon. Took a minute or so longer to boot than usual and I was prompted when it did load to update Acrobat, which I did and it rebooted. Took longer to boot, pe

  • Publishing Image: Not able to remove it

    Good morning, I have a problem with a Pulishing Image attribute on a library: I add it as an optional parameter and everything works fine (creating a new item without filling this field and creating a new item filling in it). My problem is when I wan

  • Re: Reading data from a data packet

    We did not find any driver for our instrument so we are trying to capture data using the method i have explained before. Below is an example of the data packets that we are receiving in our serial port monitoring software. First data packet       13

  • Stop "garageband 3.0.5" automatically creating playlist iTunes

    That's the subject-line I just tried in Google search, and got far too wide an arrray of results. It does this completely randomly, 1 out of 10 times I save a current project to iTunes. But why I ask ? And where can I stop it from filling in the arti

  • Delivery Order is getting archived instead of getting saved

    Hi, I am working on SAP ECC AFS. When I post Sales Order using an interface, I am getting a message saying Delivery created, but it is actually getting archived. We just now upgraded to ECC 6.0 from R/3 4.6. Is this some setting which needs to be cha