users@glassfish.java.net

Glassfish Embedd All version 3.1.2, The EJBContainer fail to start when

From: <forums_at_java.net>
Date: Fri, 23 Mar 2012 04:01:34 -0500 (CDT)

   Dear All,

   I used the glassfish-embedded-all version 3.1.1 together with JUnit 4.10
for testing the EJB project which contains the glassfish-ejb-jar.xml for
securing the EJB Web Service as transport-guarantee is CONFIDENTIAL. It works
perfectly.

   The glassfish-ejb-jar is as the following: -

    <enterprise-beans>
        <ejb>
            <ejb-name>DummyEjb</ejb-name>
            <webservice-endpoint>
               
<port-component-name>DummyEjb</port-component-name>
               
<endpoint-address-uri>engine/DummyService/Dummy</endpoint-address-uri>
               
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
            </webservice-endpoint>
        </ejb>
    </enterprise-beans>

   The EJB Web Service is as the following: -

   @Remote
   @WebService
   public interface DummyRemote {
      @WebMethod
      String greet(@WebParam(name = "name") final String name);
   }

   @Stateless
   @WebService(
        endpointInterface = "test.ejb.DummyRemote",
        serviceName       = "engine/DummyService",
        portName          = "DummyPort"
        )
   public class DummyEjb implements DummyRemote {
      @Override
      public String greet(final String name) {
        return "Hello " + name;
      }
   }

   Anyhow when I upgrade it to version 3.1.2, it cannot start. There is no
any change for my EJB project. It is just upgrade the glassfish-embedded-all
to version 3.1.2.

   Could you please help to advise futher? Thank you very much for your
help in advance. I'm looking foward to hearing form you soon.

   Regards,

   Charlee Ch.

   The stacktrace is as the follwing: -

SEVERE:
org.glassfish.deployment.common.DeploymentException
    at
org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:166)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:871)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
    at
com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:142)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
    at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at
com.scc.calm.core.engine.test.ejb.GlassfishManager.start(GlassfishManager.java:152)
    at
test.com.scc.calm.core.engine.test.ejb.GlassfishTester.whenDeploy(GlassfishTester.java:61)
    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:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:24)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException
    at
org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:193)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:871)
    at
org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:290)
    at
org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:86)
    at
org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:141)
    at
org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:138)
    at
org.glassfish.javaee.full.deployment.EarDeployer.doOnBundles(EarDeployer.java:215)
    at
org.glassfish.javaee.full.deployment.EarDeployer.doOnAllTypedBundles(EarDeployer.java:224)
    at
org.glassfish.javaee.full.deployment.EarDeployer.doOnAllBundles(EarDeployer.java:250)
    at
org.glassfish.javaee.full.deployment.EarDeployer.prepare(EarDeployer.java:138)
    ... 47 more
Caused by: java.lang.NullPointerException
    at
com.sun.enterprise.deployment.WebServiceEndpoint.composeEndpointAddress(WebServiceEndpoint.java:698)
    at
com.sun.enterprise.deployment.WebServiceEndpoint.composeEndpointAddress(WebServiceEndpoint.java:690)
    at
com.sun.enterprise.deployment.WebServiceEndpoint.composeFinalWsdlUrl(WebServiceEndpoint.java:753)
    at
org.glassfish.webservices.WebServicesDeployer.doWebServicesDeployment(WebServicesDeployer.java:634)
    at
org.glassfish.webservices.WebServicesDeployer.prepare(WebServicesDeployer.java:184)
    ... 56 more


--
[Message sent by forum member 'charlee_ch']
View Post: http://forums.java.net/node/884492