Looking up JNDI in Weblogic 5.1.0 server

I have written a simple stateless session bean in weblogic 5 server.
The bean has been deployed etc.
I am having problems in accessing it from the client.
My client code is as under: Its giving an exception in getting the initail context in the line->
properties.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
Should the username be system and the password be the same which i had entered while installing weblogic server??
Pls help asap.
import java.io.*;
import javax.naming.*;
import javax.naming.InitialContext;
import java.util.Properties;
import javax.ejb.*;
import java.rmi.*;
public class HelloClient {
     public static void main(String[] args) throws Exception {
          System.out.println("\nBegin Client...\n");
          try {
System.out.println("\n Start to call func...\n");
          Context ctx = getInitialContext();
          System.out.println("\n Returned func...\n");
          HelloHome home = (HelloHome)ctx.lookup("HelloHome");
                    System.out.println("\n After ctx.lookup...\n");
     System.out.println("Creating Hello\n");
          Hello hello = home.create();
System.out.println("The result is "
+ hello.hello());
catch (Exception e) {
System.out.println(" => Error <=");
e.printStackTrace();
System.out.println("\nEnd HelloClient...\n");
static private Context getInitialContext() throws NamingException
try
               System.out.println("Inside getInitialContext");
Properties properties = new Properties();
properties.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
properties.put("java.naming.provider.url", "t3://localhost:7001");
properties.put("java.naming.security.principal", "");
return new InitialContext(properties);
catch(NamingException namingexception)
System.out.println("We were unable to get a connection to the WebLogic server ");
System.out.println("Please make sure that the server is running.");
throw namingexception;

My Program source is:
import java.io.*;
import javax.naming.*;
import javax.naming.InitialContext;
import java.util.Properties;
import javax.ejb.*;
import java.rmi.*;
public class HelloClient {
     public static void main(String[] args) throws Exception {
          System.out.println("\nBegin Client...\n");
          try {
     System.out.println("\n Start to call func...\n");
     Context ctx = getInitialContext();
System.out.println("\n Returned func...\n");
     HelloHome home = (HelloHome)ctx.lookup("HelloHome");
     System.out.println("\n After ctx.lookup...\n");
     System.out.println("Creating Hello\n");
     Hello hello = home.create();
System.out.println("The result is "+ hello.hello());
catch (Exception e) {
System.out.println(" => Error <=");
e.printStackTrace();
System.out.println("\nEnd HelloClient...\n");
static String user = null;
static String password = null;
static String url = "t3://localhost:7001";
static public Context getInitialContext()
throws Exception {
     System.out.println("Inside getInitialContext");
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, url);
if (user != null) {
System.out.println ("user: " + user);
p.put(Context.SECURITY_PRINCIPAL, user);
if (password == null)
password = "";
p.put(Context.SECURITY_CREDENTIALS, password);
System.out.println("Finished getInitialContext");
     return new InitialContext(p);
The error when i run HelloClient is:
Begin Client...
Start to call func...
Inside getInitialContext
Finished getInitialContext
=> Error <=
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialC
ontextFactory. Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitia
lContextFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:45)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:659)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.init(InitialContext.java:218)
at javax.naming.InitialContext.<init>(InitialContext.java:194)
at HelloClient.getInitialContext(HelloClient.java:82)
at HelloClient.main(HelloClient.java:29)
End HelloClient...
I feel that there is some error in setting the classpath or the path--->>
my classpath is:
c:\java\jre\lib\rt.jar;c:\weblogic\lib\weblogicaux.jar;c:\java\lib\classes.zip;.;c:\weblogic\classes\hello.jar
and my Path is:
c:\weblogic\bin;c:\java\bin
Please Help out ASAP.....
Thanks in advance
abhishek

Similar Messages

  • Looking up JNDI names for local client

    Sir,
    I have been trying to look up JNDI name for the local home interface in the client program.But I got only "javax.naming.NoInitialContextException".I want information about to give a JNDI name for EJB and its details.
    Thanking you.
    Yours,
    R K Ramesh

    It sounds like you are not specifying the right URL or username/credentials to get an initial context.
    A typical example would be something like this:
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    p.put(Context.PROVIDER_URL, "t3://server:port");
    InitialContext ic = new InitialContext(p);
    (You can also use a properties file or system prpoerties to specify these.)
    -- Rob
    WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Weblogic 8.1 App Server and IBM MQ Series 5.2 Issue

    Hi All,
              I am trying to create a bridge between Weblogic 8.1 App Server and IBM MQ Series 5.2 and i am facing issues.
              Bridge works fine if i use QualityOfService="Atmost-once" and i am getting following error when i use
              QualityOfService="Duplicate-okay".
              Error:
              <Oct 16, 2003 6:03:35 PM PDT> <Error> <MessagingBridge> <BEA-200015> <An error occurred in bridge "MQSeries WebLogic Bridge" during the transfer of messages (java.lang.Exception: weblogic.jms.adapter.JMSConnectionHandle.acknowledge(Ljavax/jms/MessageV).>
              <Oct 16, 2003 6:03:35 PM PDT> <Warning> <MessagingBridge> <BEA-200026> <Bridge "MQSeries WebLogic Bridge" encountered some problems in one of its adapters or underlying systems. It stopped transferring messages and will try to reconnect to the adapters shortly. (The exception caught was weblogic.jms.bridge.internal.MessagingBridgeException.)>
              Any suggestions or comments will be really appreciated.
              Thanks
              Suresh
              

    It is weird that nothing shows up in the log after you turned on the debug.
              Actually I knew somebody has run into the same problem once.
              The problem disappeared after he did something on the MQSeries side (like
              restart the system and something else). I did not know exactly what he did.
              I am not sure if that will help you but worth trying.
              If that does work either, I'd suggest that you contact the BEA Customer Support
              and somebody will look at it for you in depth.
              Thanks,
              Dongbo
              Suresh wrote:
              > Thanks for following up on this.
              >
              > This bridge works with 6.1 app server and we are trying to use the same stuff
              > for 8.1 app server too. No, we are not using XAConnectionFactory.
              >
              > Suresh
              >
              > Dongbo Xiao <[email protected]> wrote:
              > >Is there any chance that the JMS connection factory on the MQSeries
              > >side is a XAConnectionFactory?
              > >
              > >Suresh wrote:
              > >
              > >> I am using the debug options (-Dweblogic.Debug.DebugMessagingBridgeStartup="true"
              > >> -Dweblogic.Debug.DebugMessagingBridgeRuntime="true") in my stratip
              > >script,
              > >> but, thats the maximum stack trace I can get. I am using jms-notran-adp.rar
              > >for
              > >> both QOS. Bridge is working fine when I use Exactly-once and repeatedly
              > >getting
              > >> the same message when I use Duplicate_okay. My destination queue is
              > >not able to
              > >> ackowledge the messge to the sender.
              > >>
              > >> Here I am giving nodes from my config.xml
              > >>
              > >> <MessagingBridge AsyncEnabled="false" BatchInterval="40000"
              > >> Name="MQSeries WebLogic Bridge"
              > >> QualityOfService="Duplicate-okay"
              > >> SourceDestination="MQSeries Inbound Destination" Started="true"
              > >> TargetDestination="WebLogic Inbound Destination" Targets="myserver"/>
              > >> <JMSBridgeDestination
              > >> AdapterJNDIName="eis.jms.WLSConnectionFactoryJNDINoTX"
              > >> ConnectionFactoryJNDIName="jms.InboundMessageConnectionFactory"
              > >> ConnectionURL="t3://myserver:7001"
              > >> DestinationJNDIName="jms.InboundMessageQueue"
              > >> DestinationType="Queue"
              > >> InitialContextFactory="weblogic.jndi.WLInitialContextFactory"
              > >> Name="WebLogic Inbound Destination" UserName="username" UserPassword="pwd"/>
              > >> <JMSBridgeDestination
              > >> AdapterJNDIName="eis.jms.WLSConnectionFactoryJNDINoTX"
              > >> ConnectionFactoryJNDIName="cn=MQ_BROKER_1,ou=inboundConnectionFactories,ou=mqseries,ou=jms,ou=Systems"
              > >> ConnectionURL="ldap://ldapServer:389/o=myroot"
              > >> DestinationJNDIName="cn=queue2,ou=queue,ou=mqseries,ou=jms,ou=Systems"
              > >> InitialContextFactory="com.sun.jndi.ldap.LdapCtxFactory"
              > >> Name="MQSeries Inbound Destination"
              > >> UserName="cn=admin,o=myroot" UserPassword="pwd"/>
              > >> <Application Name="jms-notran-adp"
              > >> Path="C:\bea\weblogic81\server\lib" StagingMode="nostage" TwoPhase="true">
              > >> <ConnectorComponent Name="jms-notran-adp"
              > >> Targets="rdoddapaneni3" URI="jms-notran-adp.rar"/>
              > >> </Application>
              > >>
              > >> Thanks
              > >>
              > >> Tom Barnes <[email protected]> wrote:
              > >> >By the way, if you are looking to improve performance, transactional
              > >> >mode may actually be the fastest. See the JMS Performance
              > >> >Guide white-paper on dev2dev for details.
              > >> >
              > >> >Suresh wrote:
              > >> >
              > >> >> Hi All,
              > >> >>
              > >> >> I am trying to create a bridge between Weblogic 8.1 App Server and
              > >> >IBM MQ Series 5.2 and i am facing issues.
              > >> >>
              > >> >> Bridge works fine if i use QualityOfService="Atmost-once" and i
              > >am
              > >> >getting following error when i use
              > >> >> QualityOfService="Duplicate-okay".
              > >> >>
              > >> >> Error:
              > >> >>
              > >> >> <Oct 16, 2003 6:03:35 PM PDT> <Error> <MessagingBridge> <BEA-200015>
              > >> ><An error occurred in bridge "MQSeries WebLogic Bridge" during the
              > >transfer
              > >> >of messages (java.lang.Exception: weblogic.jms.adapter.JMSConnectionHandle.acknowledge(Ljavax/jms/MessageV).>
              > >> >
              > >> >> <Oct 16, 2003 6:03:35 PM PDT> <Warning> <MessagingBridge> <BEA-200026>
              > >> ><Bridge "MQSeries WebLogic Bridge" encountered some problems in one
              > >> >of its adapters or underlying systems. It stopped transferring messages
              > >> >and will try to reconnect to the adapters shortly. (The exception
              > >caught
              > >> >was weblogic.jms.bridge.internal.MessagingBridgeException.)>
              > >> >>
              > >> >> Any suggestions or comments will be really appreciated.
              > >> >>
              > >> >> Thanks
              > >> >> Suresh
              > >> >
              > >
              

  • Looking up an EJB in a foreign app server

    Hi,
    I am trying to look up an EJB in a foreign app server from within an EJB deployed
    in WLS 7.0.2. I have passed the name of the initialcontext factory with the -Djava.naming.factory.initial
    argument to the java command in the startWebLogic.cmd file. However WLS uses the
    weblogic.jndi.internal.WLContextImpl class to perform the lookup. Why is this
    happening, any ideas, advises?
    Thanks
    Sriram

    "sriram" <[email protected]> wrote:
    >
    Deepak, Thank you for the reply. Setting the weblogic.jndi.WLInitialContextFactory
    to my foreign app server's ContextFactory doesn't work. The WLS still
    uses weblogic.jndi.internal.WLContextImpl
    to do the lookup. Does any other propertes need to set as well to accomplish
    what I am doing
    Thanks
    Sriram
    "Deepak Vohra" <[email protected]> wrote:
    Specify the system property
    weblogic.jndi.WLInitialContextFactory=<initial context factory>
    "sriram" <[email protected]> wrote:
    Hi,
    I am trying to look up an EJB in a foreign app server from within an
    EJB deployed
    in WLS 7.0.2. I have passed the name of the initialcontext factory
    with
    the -Djava.naming.factory.initial
    argument to the java command in the startWebLogic.cmd file. HoweverWLS
    uses the
    weblogic.jndi.internal.WLContextImpl class to perform the lookup. Why
    is this
    happening, any ideas, advises?
    Thanks
    Sriram
    hi,
    Try the below code in the Lookup EJB
    Properties prop = new properties();
    /* For Weblogic */
    prop.put(Context.INITAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    prop.put(Context.PROVIDER_URL,"t3://ipaddress:7001");
    /* For JBOSS */
    prop.put(Context.INITAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
    prop.put(Context.PROVIDER_URL,"jnp://ipaddress:7001");
    InitialContext prop = new InitialContext(prop);
    regards,
    Elango TR
    Elango TR
    Sip Technologies & Exports Ltd. Elnet Software City,Chennai
    http://www.siptech.co.in
    [email protected]

  • JNDI name is not displayed in server console JNDI tree

    Hi. I have two objects with similar JNDI names. Object 1 has JNDI name "abc.test1". Object 2 has JNDI name "Abc.test2". Here is difference in first char size: 'a' and 'A'.
    The issue is that in JNDI tree weblogic server console displays only Object 1. To see Object 2 I can change JNDI name for this object, but I do not want to change JNDI name.
    Is there any way to see both objects without renaming Object 2?
    I use WebLogic Server 8.1 SP4.
    JNDI tree is displayed from console left panel: <domain>-<server>-<server name>-<right mouse click>-"View JNDI tree"

    Someone finally found this one (Farhan I think) - I hope you can find this link: its in this forum - just a few weeks old do a search on jndi on this forum if you don't find it.
    http://forum.java.sun.com/thread.jsp?forum=136&thread=321971&start=15&range=15&hilite=false&q=

  • Error while deploying an application on Weblogic 10.3 Application Server

    Hi All,
    i have installed latest weblogic 10.3 Application server.
    - installation of Weblogic was successful.
    - tried to deploy my application but it failed to do so during that point of time and throw an exception:-
    !MESSAGE [javax.management.RuntimeMBeanException: java.lang.RuntimeException: weblogic.management.provider.EditSaveChangesFailedException: Can not save changes while prepare changes are still in progress.
    - then i tried tyo install my appliction's .ear file manually from weblogic console then i get the different exception:-
    Unable to access the selected application.
    Exception in AppMerge flows' progression
    Exception in AppMerge flows' progression
    VALIDATION PROBLEMS WERE FOUND problem: cvc-id.2: Duplicate ID value 'MessageDriven_1044495979312':<null> problem: cvc-id.2: Duplicate ID value 'MessageDriven_1044495979312':<null> problem: cvc-id.2: Duplicate ID value 'MessageDriven_1044495979312':<null> problem: cvc-id.2: Duplicate ID value
    - my application has server and console, when i tried to install only console, i was lucky to deploy the console, but not the server.
    Any body having any idea regarding these exceptions, what should i do to overcome these errors.
    Please shred some light and suggest some pointers to this issue.
    Regards
    Avninder.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    We are not using Anotations as we are on EJB 2, we use Deployment Descriptors.
    I have investigated and find out that in ejb-jar.xml there is one tag <acknowledge-mode>
    in my ejb-jar.xml we have 7 MD beans, this tag is mentioned only in enactment bean and email dispatcher bean. For these 2 beans i am getting conflict, so i removed <acknowledge-mode> tag from these 2 beans and create the .ear again and deploy.
    i was succeed in this.
    As per my understanding Weblogic 10.3 is using ejb 3.0 and its xsd is different from ejb 2.0 xsd, so if i remove these tags from my ejb-jar.xml beans then in future i'll not be able to deploy it on weblogic 9.2.
    i think weblogic has not provide the backward compatibility, Weblogic has to support the structure as many applications using WL 9.2.
    Below is the sample of my ejb-jar.xml where these tags differ
    <message-driven id="MessageDriven_1044495979312">
                   <display-name>EmailDispatcher</display-name>
                   <ejb-name>EmailDispatcher</ejb-name>
                   <ejb-class>com.fujitsu.iflow.serveree.impl.globalnotification.EmailDispatcherMB</ejb-class>
                   <transaction-type>Bean</transaction-type>
                   <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
                   <message-driven-destination id="MessageDrivenDestination_1044498867079">
                        <destination-type>javax.jms.Topic</destination-type>
                        <subscription-durability>NonDurable</subscription-durability>
                   </message-driven-destination>
              </message-driven>
              <message-driven id="MessageDriven_1044495979297">
                   <display-name>Enactment</display-name>
                   <ejb-name>Enactment</ejb-name>
                   <ejb-class>com.fujitsu.iflow.serveree.impl.wfengine.EnactmentMB</ejb-class>
                   <transaction-type>Bean</transaction-type>
                   <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
                   <message-driven-destination id="MessageDrivenDestination_1044498867078">
                        <destination-type>javax.jms.Topic</destination-type>
                        <subscription-durability>NonDurable</subscription-durability>
                   </message-driven-destination>
              </message-driven>
              <message-driven id="MessageDriven_1063157666983">
                   <display-name>JmsEnactor</display-name>
                   <ejb-name>JmsEnactor</ejb-name>
                   <ejb-class>com.fujitsu.iflow.connectorsee.msgconnector.JmsEnactmentMB</ejb-class>
                   <transaction-type>Bean</transaction-type>
                   <message-driven-destination>
                        <destination-type>javax.jms.Topic</destination-type>
                   </message-driven-destination>
              </message-driven>
              <message-driven id="MessageDriven_1063157666982">
                   <display-name>SmsConnector</display-name>
                   <ejb-name>SmsConnector</ejb-name>
                   <ejb-class>com.fujitsu.iflow.connectorsee.smsconnector.SmsConnectorMB</ejb-class>
                   <transaction-type>Bean</transaction-type>
                   <message-driven-destination>
                        <destination-type>javax.jms.Topic</destination-type>
                   </message-driven-destination>
              </message-driven>
    Kindly help me out.
    Suggest is there any workaround so that i can use my application in both the versions.
    cheers :)

  • Installing Weblogic 12c on windows server 2008

    Trouble installing Weblogic 12 on windows server 2008 ,i have oracle 11g databse in the same system.Now i am trying to install Oracle Weblogic 12 ,but WLS requires JDK 1.6 as a minimum ,after i install the Oracle11g database it automatically installed the Jdk 1.5 ..now how can i go about and install Weblogic 12 .

    install JDK 6 or 7. Load the environment variables from CMD.EXE
    set JAVA_HOME = RUTA_DEL_JDK_6_OR_7
    set PATH =%JAVA_HOME%\BIN;% PATH%
    Then, from the same terminal (cmd.exe) run the weblogic runInstaller.exe 12c.

  • Connection timeout when using iPlanet web-server uses Weblogic 6.1 proxy server to proxy requests to an HTTP server

    Hi all,
    My configuration is as follows: I have an iPlanet web-server that uses a WebLogic
    6.1 (sp1) server to proxy requests to another HTTP server. The HTTP request runs
    for 120 seconds. This causes Weblogic to timeout after a while. The error I get
    is as follows:
    <Aug 25, 2003 3:37:09 PM GMT+00:00> <Warning> <HttpClient> <Couldn't open connection
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:127)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:194)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
    at weblogic.net.http.HttpClient.New(HttpClient.java:149)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:109)
    at com.db.gmr.dcm.DebtIssueServlet.getVectorFromConnection(DebtIssueServle
    t.java:285)
    at com.db.gmr.dcm.IssuesUSThread.run(IssuesUSThread.java:29)
    >
    I get the same error when I added the following plug-in configuration parameters
    (in obj.conf):
    ConnectTimeoutSecs="170" ConnectRetrySecs="170".
    What do I need to do to extend this timeout? Any help you can provide will be
    greatly appreciated..
    Thanks
    Manish

    Hi all,
    My configuration is as follows: I have an iPlanet web-server that uses a WebLogic
    6.1 (sp1) server to proxy requests to another HTTP server. The HTTP request runs
    for 120 seconds. This causes Weblogic to timeout after a while. The error I get
    is as follows:
    <Aug 25, 2003 3:37:09 PM GMT+00:00> <Warning> <HttpClient> <Couldn't open connection
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
    at java.net.Socket.<init>(Socket.java:273)
    at java.net.Socket.<init>(Socket.java:127)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:194)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
    at weblogic.net.http.HttpClient.New(HttpClient.java:149)
    at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:109)
    at com.db.gmr.dcm.DebtIssueServlet.getVectorFromConnection(DebtIssueServle
    t.java:285)
    at com.db.gmr.dcm.IssuesUSThread.run(IssuesUSThread.java:29)
    >
    I get the same error when I added the following plug-in configuration parameters
    (in obj.conf):
    ConnectTimeoutSecs="170" ConnectRetrySecs="170".
    What do I need to do to extend this timeout? Any help you can provide will be
    greatly appreciated..
    Thanks
    Manish

  • Using WebLogic as a Web Server

    Are there any disadvantages to using WebLogic as a Web Server also, if the
    majority of the site is not static HTML, as compared to plugging Weblogic
    into IIS?
    Thanks.
    [email protected]

    There are a lot of benefits using WebLogic as the Web server. For one, it
    greatly simplifies deployment and management.
    If you already have a Webserver deploy, it sometimes makes sense to
    integrate us with that existing server.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "Marc Lippman" <[email protected]> wrote in message
    news:39c90c1b$[email protected]..
    Are there any disadvantages to using WebLogic as a Web Server also, if the
    majority of the site is not static HTML, as compared to plugging Weblogic
    into IIS?
    Thanks.
    [email protected]

  • WebLogic 9.2 Managed Server Is not starting

    I have WebLogic 9.2 Application Server installed on Solaris Box and have deployed some ear and war files.
    If I try to start the managed server its getting the following exception leading to FORCE_SHUTDOWN of the server.
    Please help me if any one know the solution for this.
    The Exception is
    <Jan 5, 2009 4:46:12 AM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Server VM Ve
    rsion 1.5.0_10-b03 from Sun Microsystems Inc.>
    java.io.IOException: Error while downloading files from admin server. Undelying error is : null
    at weblogic.deploy.service.datatransferhandlers.HttpDataTransferHandler.getDataAsStream(HttpDataTransferHandler.java:7
    1)
    at weblogic.deploy.service.datatransferhandlers.DataHandlerManager$RemoteDataTransferHandler.getDataAsStream(DataHandl
    erManager.java:153)
    at weblogic.deploy.internal.targetserver.datamanagement.ConfigDataUpdate.doDownload(ConfigDataUpdate.java:75)
    at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
    at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:98)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.downloadFiles(RuntimeAccessDeploymentR
    eceiverService.java:892)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.updateFiles(RuntimeAccessDeploymentRec
    eiverService.java:851)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.handleRegistrationResponse(RuntimeAcce
    ssDeploymentReceiverService.java:706)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.registerHandler(RuntimeAccessDeploymen
    tReceiverService.java:677)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.start(RuntimeAccessDeploymentReceiverS
    ervice.java:169)
    at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:374)
    at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:125)
    at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:630)
    at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:402)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
    at weblogic.Server.main(Server.java:67)
    <Jan 5, 2009 4:46:19 AM CST> <Error> <Management> <BEA-141196> <The managed server could not update the configuration files du
    ring the registration with the deployment service. The update failed due to an exception:
    weblogic.management.DeploymentException: Exception occured while downloading files
    at weblogic.deploy.internal.targetserver.datamanagement.ConfigDataUpdate.doDownload(ConfigDataUpdate.java:83)
    at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
    at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:98)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.downloadFiles(RuntimeAccessDeploymentR
    eceiverService.java:892)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.updateFiles(RuntimeAccessDeploymentRec
    eiverService.java:851)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.handleRegistrationResponse(RuntimeAcce
    ssDeploymentReceiverService.java:706)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.registerHandler(RuntimeAccessDeploymen
    tReceiverService.java:677)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.start(RuntimeAccessDeploymentReceiverS
    ervice.java:169)
    at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:374)
    at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:125)
    at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:630)
    at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:402)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
    at weblogic.Server.main(Server.java:67)
    java.io.IOException: Error while downloading files from admin server. Undelying error is : null
    at weblogic.deploy.service.datatransferhandlers.HttpDataTransferHandler.getDataAsStream(HttpDataTransferHandler.java:7
    1)
    at weblogic.deploy.service.datatransferhandlers.DataHandlerManager$RemoteDataTransferHandler.getDataAsStream(DataHandl
    erManager.java:153)
    at weblogic.deploy.internal.targetserver.datamanagement.ConfigDataUpdate.doDownload(ConfigDataUpdate.java:75)
    at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
    at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:98)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.downloadFiles(RuntimeAccessDeploymentR
    eceiverService.java:892)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.updateFiles(RuntimeAccessDeploymentRec
    eiverService.java:851)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.handleRegistrationResponse(RuntimeAcce
    ssDeploymentReceiverService.java:706)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.registerHandler(RuntimeAccessDeploymen
    tReceiverService.java:677)
    at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.start(RuntimeAccessDeploymentReceiverS
    ervice.java:169)
    Thanks
    Shailesh
    Edited by: user6488619 on Jan 5, 2009 6:48 PM

    I'd say it's time to file a support case. Go to [https://support.bea.com] for this. You'll have to register if you haven't before. Note that this portal is going away at the end of this month.

  • Weblogic 11g on windows server 2008 - run WLST

    how to configure weblogic 11g on windows server 2008 to run a simple WLST script
    I managed to get so far on Windows to run a WLST script. Most examples are in Unix
    I am in Dos, and ran our set environment variables.
    Run java weblogic.WLST
    To use WLST in interactive mode:java weblogic.WLST
    I get as far as wls:/offline> connect('weblogic','weblogic','localhost:7001')
    This works,
    So now I am trying to figure out how to display the server state of the server, most examples are for unix.
    Would any one have one that shows the server state, number of connections, and the number of active threads or stuck.
    Just a a pointer would help me.
    Cheers

    You can refer this
    http://weblogic-wonders.com/weblogic/2010/11/13/wlst-script-to-monitor-throughput-and-heapsize-of-weblogic-server/

  • How to modify JSP on Weblogic without restarting a server

    Hello,
    Could someone explain how to modify JSP on Weblogic without restarting a server?
    We use WL 10.2.
    I search and modify required jsp on a server, but nothing happens on a Web Browser. I run in Development mode.
    Please advice,
    Thanks,
    Yuri

    Hi Yuri,
    As you are in Development mode you have one options to use the Auto Deploy folder which can be found in the following path (domain_name/autodeploy).
    More information on Auto Deployment check the below link:
    http://download.oracle.com/docs/cd/E11035_01/wls100/deployment/autodeploy.html#wp1021626
    Other option is to use the following parameter "*page-check-seconds*" in your weblogic.xml file
    For more information check out the below link
    Topic: jsp-descriptor
    http://download.oracle.com/docs/cd/E13222_01/wls/docs103/webapp/weblogic_xml.html#wp1038491
    Hope this helps you.
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Middleware Magic | Come, Join Us and Experience The Magic…

  • Oracle Weblogic 9.2.3 server support for SAML 1.1 'wildcard attributes'

    To support Web SSO using SAML on Oracle Weblogic 9.2.3 server - I need to parse SAML 1.1 'wildcard attributes' in the SAML 1.1 Asserter schema; https://www.oasis-open.org/committees/download.php/3408/oasis-sstc-saml-schema-assertion-1.1.xsd. The Oracle Weblogic 9.2.3 server provides an interface; weblogic.security.providers.saml.SAMLIdentityAssertionNameMapper - for parsing the information in the SAML token provided by an external partner, but this interface only deals with nameid and groups and not attributes in the AttributeStatement of the SAML token. In weblogic 10 a new interface; com.bea.security.saml2.providers.SAML2IdentityAsserterAttributeMapper - is provided, which solves this problem.
    My question is, how can I get access to the attributes in the AttributeStatement in the SAML 1.1 token on an Oracle Weblogic 9.2.3 server ?
    Or
    Is the weblogic.security.providers.saml.SAMLIdentityAssertionAttributeMapper available in weblogic 9.2.3 ?

    To support Web SSO using SAML on Oracle Weblogic 9.2.3 server - I need to parse SAML 1.1 'wildcard attributes' in the SAML 1.1 Asserter schema; https://www.oasis-open.org/committees/download.php/3408/oasis-sstc-saml-schema-assertion-1.1.xsd. The Oracle Weblogic 9.2.3 server provides an interface; weblogic.security.providers.saml.SAMLIdentityAssertionNameMapper - for parsing the information in the SAML token provided by an external partner, but this interface only deals with nameid and groups and not attributes in the AttributeStatement of the SAML token. In weblogic 10 a new interface; com.bea.security.saml2.providers.SAML2IdentityAsserterAttributeMapper - is provided, which solves this problem.
    My question is, how can I get access to the attributes in the AttributeStatement in the SAML 1.1 token on an Oracle Weblogic 9.2.3 server ?
    Or
    Is the weblogic.security.providers.saml.SAMLIdentityAssertionAttributeMapper available in weblogic 9.2.3 ?

  • Creating Weblogic domain with Admin Server and managed servers on different

    I am trying to create Weblogic domain where Admin Server and managed servers on different machines. However I am unable to find any steps which would allow me to do so. The config.sh script always creates an Admin Server. Please help.

    Whilst the method that Lawrence gives can result in a domain that is perfectly functional, it is a method that can result in errors as you are having to enter the same information twice. Also you will create two admin servers, as the second domain creation will have the console added to it on the renamed admin server and this will give issues.
    The best method to create a domain spamming multiple physical machines, is to create the domain with all the components on the first machine. This means planning the domain and making sure all components are added once; so having the information about the domain written out is wise. Ensure that the WLS software is installed in the same path on each machine before starting.
    Then copy the domain that you have created from one machine to the other, keeping the same paths. You can simply copy (I've used this method multiple times without issue) but the supported way would be to use the WLST PACK and UNPACK methods. These create and extract domains from templates. Some more information on these is given here -> http://docs.oracle.com/cd/E13179_01/common/docs100/pack/intro.html#wp1069056

  • @PostConstruct method is not called in weblogic 12.1.2 server

    Dear all,
    Currently, i'm using jsf 2 application and it's deployed in weblogic 12.1.2 server.
    The issue is : the @PostConstruct method is not called.
    I tried to search and know that: this one is fixed by a patch of weblogic 12.1.1 server.
    Patch 13703600: SU Patch [UXPH]: WLS12C - POSTCONSTRUCT NOT CALLED ON @MANAGEDBEAN BEANS IN JSF APP
    Last Updated 29-Feb-2012 03:03 (1+ year ago)
    Product Oracle WebLogic Server
    Release WLS 12.1.1.0
    So why does this happen again in weblogic 12.1.2 server? Or may i miss something?
    Did someone have experience about this issue?
    Thank you so much for your help.
    Best regards.

    Hi,
    I can see that bug 13703600 is already got fixed in 12.1.2 but still you same problem please raise ticket with oracle support.
    Regrds,
    Kal

Maybe you are looking for

  • How do i open a source code in zip file

    Hello! i"m having problems running my codes, i'm using windows and i'm having problems running the codes. At first i thought it was my codes, so i tried a friends code in a zip file and it still gives the same error: exception of in thread "main" jav

  • Error when releasing a transportation order

    Good morning. I am trying to release a transportation order that contains a nonstandard table which has been added two fields, and the corresponding data elements and dominions of the new fields. When releasing the order, dumps an error and cancels t

  • Workflow in MSS

    Hello All, I have been trying to configure workflow for use in PCR (Personnel Change Request) forms in MSS. I think I have already configured workflow, for the most part, but I am getting errors in the form of emails after initiating PCRs. For a PCR

  • Bank charge on transaction automatic payment

    Hi Guru    I would like to know set post automatic bank charge on transaction automatic payment  (t code F110)  such as dr. vendor dr. bank charge      cr. bank clearing how I can do. thank you very much

  • TO CREATE A PURCHASING GROUP IN SAP

    I WANT TO KNOW ABOUT HOW TO CREATE A PURCHASING GROUP .