Skip to main content

Error processing EjbDescriptor deploying EJB module in GF3

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
raypettas
Offline
Joined: 2004-06-08

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)
|#]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hzhang_jn
Offline
Joined: 2005-07-22

Thanks for reporting this and attaching the test case in the issue. We
will look into this and update in the issue
http://java.net/jira/browse/GLASSFISH-16547.

- Hong

forums@java.net wrote:
> 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
>
>