users@glassfish.java.net

Error processing EjbDescriptor deploying EJB module in GF3

From: <forums_at_java.net>
Date: Wed, 4 May 2011 11:37:47 -0500 (CDT)

Hello

I am trying to port an existing EE5 application from glassfish 2.1.1 to
3.1(b43) and I have deployment problems.

The rough structure of the application is as follows:

- EJB.jar contains the implementation of a set of stateless session beans

- EJBClient.jar contains their local and remote interfaces

- many distinct web applications, containing servlets and web services that
call EJBs

The reason why it is structured like that is that I don't want to include the
whole EJBs code into web applications, but just their remote interfaces.

I'll try to attach a sample project as an example of above.

Up to GF 2.1.1 I was able to deploy just EJB.jar besides all the WARs.

With GF3.1 I must package EJB.jar and EJBClient.jar into an EAR, otherwise I
get the exception included below. Is there any reason for that ? Is it a
configuration problem or a GF bug ?

#|2011-05-04T18:20:11.896+0200|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=54;_ThreadName=Thread-1;|Error
processing EjbDescriptor
java.lang.RuntimeException: Error processing EjbDescriptor
    at
com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:277)
    at
com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2578)
    at
com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:734)
    at
com.sun.enterprise.deployment.Application.visit(Application.java:1768)
    at
com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:244)
    at
org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
    at
org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:826)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:768)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
    at
org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:145)
    at
org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:577)
    at
org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:463)
    at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:395)
    at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:380)
    at
org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:213)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.NullPointerException
    at
com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.convertToResourceName(APIClassLoaderServiceImpl.java:269)
    at
com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:178)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at
com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:222)
    ... 24 more
|#]
[#|2011-05-04T18:20:11.896+0200|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=54;_ThreadName=Thread-1;|Exception
while deploying the app [PippoEJB] : Error processing EjbDescriptor
java.lang.NullPointerException
    at
com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.convertToResourceName(APIClassLoaderServiceImpl.java:269)
    at
com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:178)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at
com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:222)
    at
com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2578)
    at
com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:734)
    at
com.sun.enterprise.deployment.Application.visit(Application.java:1768)
    at
com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:244)
    at
org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
    at
org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:826)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:768)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
    at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
    at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
    at
org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:145)
    at
org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:577)
    at
org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:463)
    at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:395)
    at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:380)
    at
org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:213)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
|#]
 


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