• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 459
  • Last Modified:

Error thrown by Weblogic 6.0 when trying to run startWebLogic.cmd

Hello experts,

I am trying to deploy an EJB application on my NT workstation.  I installed SDK 1.3.1_07 on my machine.  I have classes111 and classes12 on my machine for Oracle JDBC connectivity.  

I have installed WebLogic server 6.0 sp2

This is how startWebLogic.cmd looks like:
SETLOCAL

*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
cd ..\..

@rem Set user-defined variables.
set JAVA_HOME=D:\JavaSDK

@rem Check that script is being run from the appropriate directory
if not exist lib\weblogic.jar goto wrongplace
goto checkJRE


:wrongplace
echo startWebLogic.cmd must be run from the config\mydomain directory. 1>&2
goto finish

:checkJRE
@dir %JAVA_HOME%\lib > nul
if errorlevel 0 goto runWebLogic
echo.
echo The JRE wasn't found in directory %JAVA_HOME%.
echo Please edit the startWebLogic.cmd script so that the JAVA_HOME
echo variable points to the root directory of your Java installation.
goto finish

:runWebLogic
echo on
set PATH=.\bin;%PATH%

set

CLASSPATH=c:\ora817\jdbc\lib\classes12.zip;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;D:\j2s

dkee1.3\lib\j2ee.jar;c:\ora817\jdbc\lib\classes12.zip;


"%JAVA_HOME%\bin\java" -hotspot -ms64m -mx64m -classpath %CLASSPATH%

-Dweblogic.Domain=mydomain -Dweblogic.Name=myserver "-Dbea.home=D:\bea"

"-Djava.security.policy==D:\bea\wlserver6.0/lib/weblogic.policy"

-Dweblogic.management.password=%WLS_PW% weblogic.Server
goto finish


:finish

cd config\mydomain
ENDLOCAL
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/

Regarding the error trace below, it looks like it can't find an Oracle driver, although I provide it in the CLASSPATH.  How do I fix this problem?


javax.management.InstanceAlreadyExistsException: mydomain:Name=EJBDD_weblogic.utils.jars.VirtualJarFile@171eb31048268342863,Type=EJBDescriptor,EJBComponent=ssi_EJB,Application=ssi_EJB
        at com.sun.management.jmx.RepositorySupport.addMBean(RepositorySupport.java:134)
        at com.sun.management.jmx.MBeanServerImpl.internal_addObject(MBeanServerImpl.java:2352)
        at com.sun.management.jmx.MBeanServerImpl.registerMBean(MBeanServerImpl.java:874)
        at weblogic.management.internal.RemoteMBeanServerImpl.registerMBean(RemoteMBeanServerImpl.java:118)
        at weblogic.management.internal.Helper.createMBean(Helper.java:324)
        at weblogic.management.internal.Helper.createAdminMBean(Helper.java:239)
        at weblogic.management.internal.RemoteMBeanServerImpl.createAdminMBean(RemoteMBeanServerImpl.java:188)
        at weblogic.management.internal.MBeanHomeImpl.createAdminMBean(MBeanHomeImpl.java:575)
        at weblogic.management.internal.AdminMBeanHomeImpl.createAdminMBean(AdminMBeanHomeImpl.java:360)
        at weblogic.ejb20.internal.EJBMBeanFactory.parseEjbJar(EJBMBeanFactory.java:216)
        at weblogic.ejb20.internal.EJBMBeanFactory.getMBeans(EJBMBeanFactory.java:130)
        at weblogic.management.mbeans.custom.Application.initializeMBean(Application.java:587)
        at weblogic.management.mbeans.custom.Application.initializeMBeans(Application.java:497)
        at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:286)
        at weblogic.management.mbeans.custom.Application.load(Application.java:230)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
        at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
        at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
        at $Proxy6.load(Unknown Source)
        at weblogic.management.mbeans.custom.ApplicationManager.loadApplications(ApplicationManager.java:275)
        at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:237)
        at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
        at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
        at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
        at $Proxy23.start(Unknown Source)
        at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
        at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
        at weblogic.management.Admin.finish(Admin.java:493)
        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
        at weblogic.Server.main(Server.java:35)
--------------- nested within: ------------------
weblogic.management.MBeanCreationException:  - with nested exception:
[javax.management.InstanceAlreadyExistsException: mydomain:Name=EJBDD_weblogic.utils.jars.VirtualJarFile@171eb31048268342863,Type=EJBDescriptor,EJBComponent=ssi_EJB,Application=ssi_EJB]
        at weblogic.management.internal.Helper.createMBean(Helper.java:331)
        at weblogic.management.internal.Helper.createAdminMBean(Helper.java:239)
        at weblogic.management.internal.RemoteMBeanServerImpl.createAdminMBean(RemoteMBeanServerImpl.java:188)
        at weblogic.management.internal.MBeanHomeImpl.createAdminMBean(MBeanHomeImpl.java:575)
        at weblogic.management.internal.AdminMBeanHomeImpl.createAdminMBean(AdminMBeanHomeImpl.java:360)
        at weblogic.ejb20.internal.EJBMBeanFactory.parseEjbJar(EJBMBeanFactory.java:216)
        at weblogic.ejb20.internal.EJBMBeanFactory.getMBeans(EJBMBeanFactory.java:130)
        at weblogic.management.mbeans.custom.Application.initializeMBean(Application.java:587)
        at weblogic.management.mbeans.custom.Application.initializeMBeans(Application.java:497)
        at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:286)
        at weblogic.management.mbeans.custom.Application.load(Application.java:230)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
        at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
        at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
        at $Proxy6.load(Unknown Source)
        at weblogic.management.mbeans.custom.ApplicationManager.loadApplications(ApplicationManager.java:275)
        at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:237)
        at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
        at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
        at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
        at $Proxy23.start(Unknown Source)
        at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
        at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
        at weblogic.management.Admin.finish(Admin.java:493)
        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
        at weblogic.Server.main(Server.java:35)
<Mar 21, 2003 12:39:04 PM EST> <Error> <JDBC Connection Pool> <Cannot startup connection pool "SsiDev" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
DriverManager failed with 'No suitable driver' while trying to create
 a Connection for the 'SsiDev' pool. This indicates that the URL,

        jdbc.oracle.thin:@10.80.57.31:12249:set_dev2

 is not supported by the Driver

        oracle.jdbc.driver.OracleDriver

 The acceptsURL method on oracle.jdbc.driver.OracleDriver retured false
 for the url jdbc.oracle.thin:@10.80.57.31:12249:set_dev2.

 The following is a list of currently loaded JDBC Drivers:
        oracle.jdbc.driver.OracleDriver

        at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:173)
        at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:114)
        at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:653)
        at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.java:261)
        at weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:695)
        at weblogic.jdbc.common.JDBCService.addDeployment(JDBCService.java:108)
        at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:327)
        at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:277)
        at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:232)
        at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:192)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
        at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
        at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
        at $Proxy29.updateDeployments(Unknown Source)
        at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2299)
        at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:240)
        at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
        at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
        at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:285)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
        at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
        at $Proxy23.start(Unknown Source)
        at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:435)
        at weblogic.management.Admin.startApplicationManager(Admin.java:1033)
        at weblogic.management.Admin.finish(Admin.java:493)
        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
        at weblogic.Server.main(Server.java:35)
>
<Mar 21, 2003 12:39:06 PM EST> <Notice> <WebLogicServer> <WebLogic Server started>
0
Dmitriy
Asked:
Dmitriy
  • 4
  • 2
1 Solution
 
kennethxuCommented:
>> jdbc.oracle.thin:@10.80.57.31:12249:set_dev2
jdbc:oracle:thin:@10.80.57.31:12249:set_dev2
notice that it is (:) instead of (.)
0
 
DmitriyAuthor Commented:
Can you be more precise?  There are three colons in that line.  Which one should I change to (.) ?
0
 
kennethxuCommented:
you used (.), all should be (:). how I made it clear this time :)
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
kennethxuCommented:
of course, the dot between ip address should remain the same. in my first comment.

the first line with ">>" is what you wrote. that's not correct. the 2nd line is the correct url you should use.
0
 
DmitriyAuthor Commented:
This fixed the problem.  Thanx for your help :)
0
 
kennethxuCommented:
my pleasure.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now