This discussion is archived
0 Replies Latest reply: Jul 25, 2013 1:50 AM by user2198574 RSS

Error starting embedded container

user2198574 Newbie
Currently Being Moderated

Hi,

 

I try to setup embedded container and it fails:

 

        Properties prop=new Properties();
        prop.setProperty(EJBContainer.MODULES,"jar");
        prop.put(EJBContainer.PROVIDER, "weblogic.ejb.embeddable.EJBContainerProvider");
        container=EJBContainer.createEJBContainer(prop);

 

javax.ejb.EJBException: Error instantiating embedded server; nested exception is: weblogic.server.embed.EmbeddedServerException: Error creating default domain

weblogic.server.embed.EmbeddedServerException: Error creating default domain

    at weblogic.server.embed.internal.DomainConfig.createConfig(DomainConfig.java:235)

    at weblogic.server.embed.internal.DomainConfig.getDefaultDomain(DomainConfig.java:143)

    at weblogic.server.embed.internal.DomainConfig.ensureInitialized(DomainConfig.java:66)

    at weblogic.server.embed.internal.EmbeddedServerImpl.ensureStarted(EmbeddedServerImpl.java:213)

    at weblogic.server.embed.internal.EmbeddedServerImpl.start(EmbeddedServerImpl.java:111)

    at weblogic.ejb.embeddable.EJBContainerImpl.initializeServer(EJBContainerImpl.java:98)

    at weblogic.ejb.embeddable.EJBContainerImpl.<init>(EJBContainerImpl.java:77)

    at weblogic.ejb.embeddable.EJBContainerProvider.createEJBContainer(EJBContainerProvider.java:17)

    at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:102)

Caused by: java.lang.NoSuchMethodError: weblogic.Home.getMiddlewareHomePath()Ljava/lang/String;

    at weblogic.management.utils.PDevHelper.getConfigLaunchLocation(PDevHelper.java:66)

    at weblogic.management.utils.PDevHelper.getPDevClassLoader(PDevHelper.java:38)

    at weblogic.management.internal.CIEDomainGenerator.validateConfigFramework(CIEDomainGenerator.java:18)

    at weblogic.server.embed.internal.FullEmbeddedServerProvider.lookupDomainGenerator(FullEmbeddedServerProvider.java:87)

    at weblogic.server.embed.internal.EmbeddedServerProvider.createDefaultDomain(EmbeddedServerProvider.java:138)

    at weblogic.server.embed.internal.DomainConfig.createConfig(DomainConfig.java:233)

    ... 30 more

 

I use wls12120 for developers, classpath contains wlsaft3client.jar, javax.persistence_2.1.0.0_1-0-2.jar and javax.ejb_3.2.0.jar (all from same weblogic 12c installation). Is it bug in weblogic?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points