Discussions

EJB design: Loading of the Jar's at Runtime

  1. Loading of the Jar's at Runtime (7 messages)

    Freinds ,

              Please advice me about how to load the jar files to an application at Runtime?

    Apart from the classLoader is there any tool or any clue to load the jar file at Runtime into my application?

    Please advice me asap .

    Thanks,

    Sunil

    Threaded Messages (7)

  2. Loading of the Jar's at Runtime[ Go to top ]

    You don't load the jars themselves. You load the files inside the jar.

    To load a class file in a jar:

    a) Put the jar in the classpath.
    b) Use the class in your program.

    To load other files (such as XML or properties files), try using Class.getResourceAsStream() with a class in the same jar.
  3. What about...[ Go to top ]

    What about added jars to the classpath at runtime?
  4. What about...[ Go to top ]

    What about added jars to the classpath at runtime?
    For generic Java applications, you probably need a custom class loader. You might be able to get this to work if you copy the jar into the jre/lib/ext directory, but I have never tried this.

    Most J2EE servers already have a mechanism to do this. For web apps, for example, you could put new jars into WEB-INF/lib.
  5. Re: What about...[ Go to top ]

    What about added jars to the classpath at runtime?
    For generic Java applications, you probably need a custom class loader. You might be able to get this to work if you copy the jar into the jre/lib/ext directory, but I have never tried this.Most J2EE servers already have a mechanism to do this. For web apps, for example, you could put new jars into WEB-INF/lib.
    if u have the jar file in the jre/lib/ext directory and the class which has a main() method in the jar file is invoked to start the application, ExtClassLoader is gonna be the classloader of the class invoked so that classes in classpath cannot be found without using AppClassLoader explicity. Watch out.
  6. Re: What about...[ Go to top ]

    AppClassLoader is used to load the jar files.
    He wanna load classes(jars) without classloaders.
  7. U cannot load classes at runtime without a ClassLoader.
    Even though you can retrieve a class file from ur jar,
    the class file (binary representation) must be converted to
    a java class object. ClassLoader's defineClass() method gotta be involved there.
    (defineClass() invokes defineClass0()method which is a native method)
  8. Dear Friends,

                I have installed the new version of weblogic 8.1 and try to create the new domain(worshop/server/any domain) using the weblogic console .

    But it is unable to start the weblogic server and giving the exception with the pointbase server. The exception follows as..

    Using java memory arguments: -Xms256m -Xmx256m -XX:CompileThreshold=8000 -XX:PermSize=32m -XX:MaxPermSize=128m
    WLS Production Mode=
    .
    .
    CLASSPATH=C:\bea\WEBLOG~1\server\lib\weblogic_knex_patch.jar;C:\bea\WEBLOG~1\common\lib\log4j.jar;C:\bea\WEBLOG~1\server\lib\debugging.jar;C:\bea\WEBLOG~1\server\lib\knex.jar;C:\bea\WEBLOG~1\javelin\lib\javelin.jar;C:\bea\WEBLOG~1\server\lib\wlw-lang.jar;C:\bea\JDK141~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_sp.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\server\lib\ojdbc14.jar;C:\bea\WEBLOG~1\server\lib\ant\ant.jar;C:\bea\JDK141~1\jre\lib\rt.jar;;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\bea\WEBLOG~1\server\lib\webserviceclient.jar;C:\bea\WEBLOG~1\server\lib\webserviceclient+ssl.jar;C:\bea\WEBLOG~1\server\lib\xbean.jar;C:\bea\WEBLOG~1\server\lib\wlxbean.jar;C:\bea\WEBLOG~1\server\lib\xqrl.jar;C:\bea\WEBLOG~1\server\lib\netui\netui-compiler.jar;C:\bea\WEBLOG~1\server\lib\wli.jar;C:\bea\WEBLOG~1\server\lib\fop.jar;C:\bea\WEBLOG~1\integration\adapters\sample\lib\sample-eis.jar;C:\bea\WEBLOG~1\portal\lib\wps_system.jar
    .
    PATH=C:\bea\WEBLOG~1\server\bin;C:\bea\WEBLOG~1\server\bin;C:\bea\JDK141~1\jre\bin;C:\bea\JDK141~1\bin;C:\orant\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\bea\jdk141_05\bin;;C:\bea\WEBLOG~1\server\bin\oci920_8
    .
    ***************************************************
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    ***************************************************
    starting weblogic with Java version:
    === Debugging ===
    This window is necessary for debugging code using WebLogic Workshop
    ERROR: Proxy already running...
    Could not bind to Weblogic server (Error attaching to Weblogic Server.).
    Starting WLS with line:
    C:\bea\JDK141~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms256m -Xmx256m -XX:CompileThreshold=8000 -XX:PermSize=32m -XX:MaxPermSize=128m -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -Dplatform.home=C:\bea\WEBLOG~1 -Dwls.home=C:\bea\WEBLOG~1\server -Dwli.home=C:\bea\WEBLOG~1\integration -Dlog4j.configuration=file:C:\bea\WEBLOG~1\common\lib\workshopLogCfg.xml -Dweblogic.management.discover=true -Dejbruntime.database=pointbase44 -Dweblogic.security.SSL.ignoreHostnameVerify=false -Dwlw.iterativeDev=true -Dwlw.testConsole=true -Dwlw.logErrorsToConsole=true -Dweblogic.Name=cgServer -Dweblogic.ProductionModeEnabled= -Djava.security.policy=C:\bea\WEBLOG~1\server\lib\weblogic.policy weblogic.Server
    <22-Jun-2004 22:34:31 o'clock BST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.1_05-b01 from Sun Microsystems Inc.>
    <22-Jun-2004 22:34:31 o'clock BST> <Info> <Configuration Management> <BEA-150016> <This server is being started as the administration server.>
    <22-Jun-2004 22:34:31 o'clock BST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
    WebLogic XMLX Module 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
    WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
    WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
    WebLogic Integration 8.1 SP2 Thu Dec 11 22:07:14 PST 2003 148883
    WebLogic Portal 8.1 SP2 Thu Dec 11 22:03:57 PST 2003 148883>
    <22-Jun-2004 22:34:31 o'clock BST> <Notice> <Management> <BEA-140005> <Loading domain configuration from configuration repository at C:\bea\USER_P~1\domains\NEWDOM~1\.\config.xml.>
    <22-Jun-2004 22:34:34 o'clock BST> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea\user_projects\domains\newDomainCD\cgServer\cgServer.log is opened. All server side log events will be written to this file.>
    <22-Jun-2004 22:34:36 o'clock BST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <22-Jun-2004 22:34:36 o'clock BST> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "cgServer" for domain "newDomainCD">
    <22-Jun-2004 22:34:41 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:43 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:45 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:47 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:49 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:50 o'clock BST> <Error> <JDBC> <BEA-001150> <Connection Pool "cgPool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093..>
    <22-Jun-2004 22:34:51 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "bpmArchPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:53 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "bpmArchPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:55 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "bpmArchPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:57 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "bpmArchPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:34:59 o'clock BST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "bpmArchPool": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001150> <Connection Pool "bpmArchPool" deployment failed with the following error: 0:Could not create pool connection. The DBMS driver exception was: SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093..>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "p13n_dataSyncDataSource" deployment failed with the following error: DataSource(p13n.dataSyncDataSource) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "p13n_sequencerDataSource" deployment failed with the following error: DataSource(p13n.sequencerDataSource) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "p13n_trackingDataSource" deployment failed with the following error: DataSource(p13n.trackingDataSource) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "ebusinessPool" deployment failed with the following error: DataSource(weblogic.jdbc.jts.ebusinessPool) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "bpmArchDataSource" deployment failed with the following error: DataSource(bpmArchDataSource) can't be created with non-existent Pool (connection or multi) (bpmArchPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "commercePool" deployment failed with the following error: DataSource(weblogic.jdbc.jts.commercePool) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "portalFrameworkPool" deployment failed with the following error: DataSource(portalFrameworkPool) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "WLAI_DataSource" deployment failed with the following error: DataSource(WLAI_DataSource) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "cgDataSource" deployment failed with the following error: DataSource(cgDataSource) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:00 o'clock BST> <Error> <JDBC> <BEA-001151> <Data Source "contentDataSource" deployment failed with the following error: DataSource(contentDataSource) can't be created with non-existent Pool (connection or multi) (cgPool).>
    <22-Jun-2004 22:35:01 o'clock BST> <Alert> <JMS> <BEA-040052> <JMSServer "cgJMSServer" store failed to open java.io.IOException: JMS JDBC store, connection pool = <cgPool>, prefix = <weblogic>: connection pool does not exist.
    java.io.IOException: JMS JDBC store, connection pool = <cgPool>, prefix = <weblogic>: connection pool does not exist
    at weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:359)
    at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1465)
    at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:419)
    at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
    at weblogic.jms.backend.BEStore.open(BEStore.java:262)
    at weblogic.jms.backend.BEStore.start(BEStore.java:151)
    at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
    at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
    at weblogic.jms.JMSService.addJMSServer(JMSService.java:2241)
    at weblogic.jms.JMSService.addDeployment(JMSService.java:2012)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:330)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:590)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:568)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:240)
    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 weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:476)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
    at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7271)
    at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1210)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:362)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
    at weblogic.Server.main(Server.java:32)
    >
    <22-Jun-2004 22:35:01 o'clock BST> <Error> <JMS> <BEA-040123> <Failed to start JMS Server "cgJMSServer" due to weblogic.jms.common.JMSException: JMS can not open store cgJMSStore.
    weblogic.jms.common.JMSException: JMS can not open store cgJMSStore
    at weblogic.jms.backend.BEStore.start(BEStore.java:163)
    at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
    at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
    at weblogic.jms.JMSService.addJMSServer(JMSService.java:2241)
    at weblogic.jms.JMSService.addDeployment(JMSService.java:2012)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:330)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:590)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:568)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:240)
    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 weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:476)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
    at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7271)
    at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1210)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:362)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
    at weblogic.Server.main(Server.java:32)
    Caused by: java.io.IOException: JMS JDBC store, connection pool = <cgPool>, prefix = <weblogic>: connection pool does not exist
    at weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:359)
    at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1465)
    at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:419)
    at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
    at weblogic.jms.backend.BEStore.open(BEStore.java:262)
    at weblogic.jms.backend.BEStore.start(BEStore.java:151)
    ... 29 more
    >
    <22-Jun-2004 22:35:01 o'clock BST> <Error> <WLW> <000000> <Failed to initialize the configuration file replication agent
    javax.naming.NameNotFoundException: While trying to lookup 'wli.internal.configfile.update.topic' didn't find subcontext 'wli' Resolved ; remaining name 'wli/internal/configfile/update/topic'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:858)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:225)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:154)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:188)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:237)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:336)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.bea.wli.management.configfile.RepAgent.init(RepAgent.java:137)
    at com.bea.wli.management.configfile.RepAgent.<init>(RepAgent.java:85)
    at com.bea.wli.management.configfile.AdminRepAgent.<init>(AdminRepAgent.java:35)
    at com.bea.wli.management.configfile.AdminConfigFileManager.<init>(AdminConfigFileManager.java:42)
    at com.bea.wli.management.configfile.ConfigFileManager.initialize(ConfigFileManager.java:81)
    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 com.bea.wli.init.BPMStartupShutdown.invoke(BPMStartupShutdown.java:324)
    at com.bea.wli.init.BPMStartupShutdown.startup(BPMStartupShutdown.java:189)
    at com.bea.wli.init.BPMStartup.main(BPMStartup.java:23)
    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 weblogic.t3.srvr.StartupClassService.invokeMain(StartupClassService.java:229)
    at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:160)
    at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
    at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
    at weblogic.t3.srvr.StartupClassService.addDeployment(StartupClassService.java:88)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:330)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:590)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:568)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:240)
    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 weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:476)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
    at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7271)
    at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1210)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:362)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
    at weblogic.Server.main(Server.java:32)
    >
    <22-Jun-2004 22:35:01 o'clock BST> <Error> <WLW> <000000> <Failed to initialize the replication agent. File replication in the cluster is disabled.
    com.bea.wli.management.configfile.ConfigException: Failed to initialize the configuration file replication agent
    at com.bea.wli.management.configfile.ConfigException.mkException(ConfigException.java:113)
    at com.bea.wli.management.configfile.RepAgent.init(RepAgent.java:163)
    at com.bea.wli.management.configfile.RepAgent.<init>(RepAgent.java:85)
    at com.bea.wli.management.configfile.AdminRepAgent.<init>(AdminRepAgent.java:35)
    at com.bea.wli.management.configfile.AdminConfigFileManager.<init>(AdminConfigFileManager.java:42)
    at com.bea.wli.management.configfile.ConfigFileManager.initialize(ConfigFileManager.java:81)
    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 com.bea.wli.init.BPMStartupShutdown.invoke(BPMStartupShutdown.java:324)
    at com.bea.wli.init.BPMStartupShutdown.startup(BPMStartupShutdown.java:189)
    at com.bea.wli.init.BPMStartup.main(BPMStartup.java:23)
    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 weblogic.t3.srvr.StartupClassService.invokeMain(StartupClassService.java:229)
    at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:160)
    at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
    at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
    at weblogic.t3.srvr.StartupClassService.addDeployment(StartupClassService.java:88)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:330)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:590)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:568)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:240)
    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 weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:476)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
    at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7271)
    at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1210)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:362)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
    at weblogic.Server.main(Server.java:32)
    Caused by: javax.naming.NameNotFoundException: While trying to lookup 'wli.internal.configfile.update.topic' didn't find subcontext 'wli' Resolved ; remaining name 'wli/internal/configfile/update/topic'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:858)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:225)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:154)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:188)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:237)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:336)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.bea.wli.management.configfile.RepAgent.init(RepAgent.java:137)
    ... 48 more
    >
    <22-Jun-2004 22:35:01 o'clock BST> <Error> <WLW> <000000> <Failed to obtain connection to datasource=cgDataSource, using generic DB properties>
    <22-Jun-2004 22:35:05 o'clock BST> <Error> <WLW> <000000> <Error in startup class com.bea.wli.init.WLIDBCreate Method: init:
    com.bea.wli.init.WLIDBCreateException: javax.naming.NameNotFoundException: Unable to resolve 'cgDataSource' Resolved ; remaining name 'cgDataSource'
    at com.bea.wli.init.WLIDBCreate$WLIDataSource.setDataSource(WLIDBCreate.java:287)
    at com.bea.wli.init.WLIDBCreate.init(WLIDBCreate.java:989)
    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 com.bea.wli.init.BPMStartupShutdown.invoke(BPMStartupShutdown.java:324)
    at com.bea.wli.init.BPMStartupShutdown.startup(BPMStartupShutdown.java:189)
    at com.bea.wli.init.BPMStartup.main(BPMStartup.java:23)
    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 weblogic.t3.srvr.StartupClassService.invokeMain(StartupClassService.java:229)
    at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:160)
    at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
    at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
    at weblogic.t3.srvr.StartupClassService.addDeployment(StartupClassService.java:88)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:330)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:590)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:568)
    at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:240)
    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 weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:476)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
    at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
    at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
    at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7271)
    at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1210)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:362)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
    at weblogic.Server.main(Server.java:32)
    Caused by: javax.naming.NameNotFoundException: Unable to resolve 'cgDataSource' Resolved ; remaining name 'cgDataSource'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:858)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:230)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:154)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:188)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:237)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:336)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.bea.wli.init.WLIDBCreate$WLIDataSource.setDataSource(WLIDBCreate.java:280)
    ... 45 more
    >
    <22-Jun-2004 22:35:05 o'clock BST> <Error> <Deployer> <BEA-149601> <The deployment framework was unable to resume accepting requests.>
    <22-Jun-2004 22:35:05 o'clock BST> <Emergency> <WebLogicServer> <BEA-000342> <Unable to initialize the server: [Deployer:149601]The deployment framework was unable to resume accepting requests.weblogic.t3.srvr.FatalStartupException: Can't start server due to startup class failure WLI Startup Class - with nested exception:
    [com.bea.wli.init.WLIDBCreateException: javax.naming.NameNotFoundException: Unable to resolve 'cgDataSource' Resolved ; remaining name 'cgDataSource']>
    Stopping the Weblogic Workshop debugger...
    Debugger Stopped.
    Stopping Pointbase server...
    Pointbase server stopped.
    ..............

    Please help me how to resolve this issue.

    Many thanks,
    Sunil