?
Solved

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

Posted on 2003-03-21
6
Medium Priority
?
453 Views
Last Modified: 2013-12-10
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
Comment
Question by:Dmitriy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 14

Expert Comment

by:kennethxu
ID: 8192866
>> 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
 
LVL 3

Author Comment

by:Dmitriy
ID: 8195183
Can you be more precise?  There are three colons in that line.  Which one should I change to (.) ?
0
 
LVL 14

Accepted Solution

by:
kennethxu earned 1000 total points
ID: 8195573
you used (.), all should be (:). how I made it clear this time :)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 14

Expert Comment

by:kennethxu
ID: 8195583
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
 
LVL 3

Author Comment

by:Dmitriy
ID: 8196593
This fixed the problem.  Thanx for your help :)
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 8196858
my pleasure.
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question