users@glassfish.java.net

Re: Not able to deploy EAR with CMP bean(EJB2.1) in Glassfish V2

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Nov 2008 21:55:38 PST

Nothing extra given in the "server.log" file inside GlassFish\domains\domain1\logs.

Below is the log statements.

**********************************************************

Nov 19, 2008 11:16:48 AM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
INFO:
C:/bea/jdk150_06/jre/..\bin\java
-Dcom.sun.aas.instanceRoot=D:/Installable/glassfish/domains/domain1
-Dcom.sun.aas.ClassPathPrefix=D:/Installable/migrate2glassfish-1_0/migrate2glassfish/lib/asmt-rt.jar;D:/Installable/glassfish/domains/domain1/lib/db2jcc.jar;D:/Installable/glassfish/domains/domain1/lib/db2jcc_license_cu.jar;D:/Installable/glassfish/domains/domain1/lib/db2jcc_javax.jar
-Dcom.sun.aas.ClassPathSuffix=D:/Installable/glassfish/domains/domain1/lib/ext/db2jcc.jar;D:/Installable/glassfish/domains/domain1/lib/ext/db2jcc_license_cu.jar;D:/Installable/glassfish/domains/domain1/lib/ext/db2jcc_javax.jar
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,D:/Installable/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=D:/Installable/glassfish/lib/install/applications/jmsra/imqjmsra.jar,D:/Installable/glassfish/imq/lib/jaxm-api.jar,D:/Installable/glassfish/imq/lib/fscontext.jar,D:/Installable/glassfish/imq/lib/imqbroker.jar,D:/Installable/glassfish/imq/lib/imqjmx.jar,D:/Installable/glassfish/lib/ant/lib/ant.jar,D:/Installable/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/bea/jdk150_06/jre/../lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,D:/Installable/glassfish/imq/lib/jaxm-api.jar,D:/Installable/glassfish/imq/lib/fscontext.jar,D:/Installable/glassfish/imq/lib/imqbroker.jar,D:/Installable/glassfish/imq/lib/imqjmx.jar,D:/Installable/glassfish/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,D:/Installable/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,D:/Installable/glassfish/updatecenter/lib/updatecenter.jar,D:/Installable/glassfish/jbi/lib/jbi.jar,D:/Installable/glassfish/imq/lib/imqjmx.jar,D:/Installable/glassfish/lib/ant/lib/ant.jar,dbschema.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=D:/Installable/glassfish/config
-Dcom.sun.aas.defaultLogFile=D:/Installable/glassfish/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=D:/Installable/glassfish
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.updatecenter.home=D:/Installable/glassfish/updatecenter
-Ddomain.name=domain1
-Djava.endorsed.dirs=D:/Installable/glassfish/lib/endorsed
-Djava.ext.dirs=C:/bea/jdk150_06/jre/../lib/ext;C:/bea/jdk150_06/jre/../jre/lib/ext;D:/Installable/glassfish/domains/domain1/lib/ext;D:/Installable/glassfish/javadb/lib
-Djava.library.path=D:\Installable\glassfish\lib;D:\Installable\glassfish\lib;D:\Installable\glassfish\bin;D:\Installable\glassfish\lib
-Djava.security.auth.login.config=D:/Installable/glassfish/domains/domain1/config/login.conf
-Djava.security.policy=D:/Installable/glassfish/domains/domain1/config/server.policy
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Djavax.net.ssl.keyStore=D:/Installable/glassfish/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=D:/Installable/glassfish/domains/domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djmx.invoke.getters=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-client
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=D:/Installable/glassfish/domains/domain1/logs/jvm.log
-cp
D:/Installable/glassfish/lib/jhall.jar;D:\Installable\glassfish\lib\appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
[#|2008-11-19T11:16:55.020+0530|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting Sun Java System Application Server 9.1_02 (build b04-fcs) ...|#]

[#|2008-11-19T11:16:55.099+0530|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=11;_ThreadName=pool-1-thread-2;com.sun.enterprise.interceptor.DynamicInterceptor;|MBeanServer started: com.sun.enterprise.interceptor.DynamicInterceptor|#]

[#|2008-11-19T11:16:56.349+0530|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5098: AS Socket Service Initialization has been completed.|#]

[#|2008-11-19T11:16:56.396+0530|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;Java HotSpot(TM) Client VM;1.5.0_06;Sun Microsystems Inc.;|CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.5.0_06] from [Sun Microsystems Inc.]|#]

[#|2008-11-19T11:16:56.442+0530|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;|SEC1002: Security Manager is OFF.|#]

[#|2008-11-19T11:16:57.833+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|D:/Installable/glassfish/domains/domain1/config/.__com_sun_appserv_pid|#]

[#|2008-11-19T11:16:58.333+0530|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM0001:SunoneInterceptor is now enabled|#]

[#|2008-11-19T11:16:58.567+0530|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;com.sun.enterprise.security.provider.PolicyWrapper;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

[#|2008-11-19T11:16:59.192+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;server;|WEB0114: SSO is disabled in virtual server [server]|#]

[#|2008-11-19T11:16:59.208+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;__asadmin;|WEB0114: SSO is disabled in virtual server [__asadmin]|#]

[#|2008-11-19T11:17:00.130+0530|INFO|sun-appserver9.1|javax.enterprise.resource.jms|_ThreadID=10;_ThreadName=main;|Using MQ RA for Broker lifecycle control|#]

[#|2008-11-19T11:17:01.146+0530|INFO|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=10;_ThreadName=main;|JMS Service Connection URL is :mq://gciblr-523.in.g-c-i.com:7676/|#]

[#|2008-11-19T11:17:01.458+0530|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting...|#]

[#|2008-11-19T11:17:01.536+0530|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_LB1101: Looking for Broker Running at:localhost:7676|#]

[#|2008-11-19T11:17:02.552+0530|WARNING|sun-appserver9.1|javax.jms|_ThreadID=10;_ThreadName=main;_RequestID=218f239a-a8fe-4715-b163-30bf90e21de2;|[C4003]: Error occurred on connection creation [localhost:7676]. - cause: java.net.ConnectException: Connection refused: connect|#]

[#|2008-11-19T11:17:05.833+0530|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMSRA Started:LOCAL|#]

[#|2008-11-19T11:17:06.208+0530|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM1079: Initialization of AMX MBeans started|#]

[#|2008-11-19T11:17:06.583+0530|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=12;_ThreadName=Thread-21;service:jmx:rmi:///jndi/rmi://gciblr-523.in.g-c-i.com:8686/jmxrmi;|ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://gciblr-523.in.g-c-i.com:8686/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors|#]

[#|2008-11-19T11:17:06.583+0530|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=12;_ThreadName=Thread-21;true;|ADM1506: Status of Standard JMX Connector: Active = [true]|#]

[#|2008-11-19T11:17:08.474+0530|INFO|sun-appserver9.1|com.sun.jbi.framework|_ThreadID=13;_ThreadName=pool-1-thread-3;|JBIFW0010: JBI framework ready to accept requests.|#]

[#|2008-11-19T11:17:09.489+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;|EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false|#]

[#|2008-11-19T11:17:10.442+0530|INFO|sun-appserver9.1|javax.enterprise.system.core.transaction|_ThreadID=10;_ThreadName=main;3700;|JTS5014: Recoverable JTS instance, serverId = [3700]|#]

[#|2008-11-19T11:17:10.505+0530|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|About to load the system app: MEjbApp|#]

[#|2008-11-19T11:17:10.880+0530|INFO|sun-appserver9.1|javax.enterprise.resource.corba|_ThreadID=10;_ThreadName=main;|POARemoteRefFactory checking if SFSBVersionPolicy need to be added|#]

[#|2008-11-19T11:17:10.880+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;|EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false|#]

[#|2008-11-19T11:17:10.880+0530|INFO|sun-appserver9.1|javax.enterprise.resource.corba|_ThreadID=10;_ThreadName=main;|POARemoteRefFactory addSFSBVersionPolicy? false|#]

[#|2008-11-19T11:17:10.880+0530|INFO|sun-appserver9.1|javax.enterprise.resource.corba|_ThreadID=10;_ThreadName=main;|POARemoteRefFactory checking if SFSBVersionPolicy need to be added|#]

[#|2008-11-19T11:17:10.880+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;|EJBSCLookup:: sc.getEjbContainerAvailabilityEnabledFromConfig() ==> false|#]

[#|2008-11-19T11:17:10.880+0530|INFO|sun-appserver9.1|javax.enterprise.resource.corba|_ThreadID=10;_ThreadName=main;|POARemoteRefFactory addSFSBVersionPolicy? false|#]

[#|2008-11-19T11:17:11.380+0530|INFO|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;MEjbApp;|LDR5010: All ejb(s) of [MEjbApp] loaded successfully!|#]

[#|2008-11-19T11:17:11.380+0530|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|About to load the system app: __ejb_container_timer_app|#]

[#|2008-11-19T11:17:12.130+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;jdbc/__TimerPool;|EJB5109:EJB Timer Service started successfully for datasource [jdbc/__TimerPool]|#]

[#|2008-11-19T11:17:12.130+0530|INFO|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;__ejb_container_timer_app;|LDR5010: All ejb(s) of [__ejb_container_timer_app] loaded successfully!|#]

[#|2008-11-19T11:17:12.192+0530|INFO|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;cmpcustomer;|LDR5010: All ejb(s) of [cmpcustomer] loaded successfully!|#]

[#|2008-11-19T11:17:12.208+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;|WEB0302: Starting Sun-Java-System/Application-Server.|#]

[#|2008-11-19T11:17:15.771+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;8080;|WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8080|#]

[#|2008-11-19T11:17:15.833+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;8181;|WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8181|#]

[#|2008-11-19T11:17:15.864+0530|INFO|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;4848;|WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4848|#]

[#|2008-11-19T11:17:17.693+0530|INFO|sun-appserver9.1|javax.enterprise.system.core.selfmanagement|_ThreadID=10;_ThreadName=main;|SMGT0007: Self Management Rules service is enabled|#]

[#|2008-11-19T11:17:17.771+0530|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Application server startup complete.|#]

[#|2008-11-19T11:17:24.771+0530|INFO|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.config|_ThreadID=14;_ThreadName=httpWorkerThread-4848-1;;|Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context ''|#]

[#|2008-11-19T11:17:54.005+0530|INFO|sun-appserver9.1|com.sun.jbi.management.DeploymentService|_ThreadID=15;_ThreadName=httpWorkerThread-4848-0;|JBIMA0452: Successfully processed 0 Service Assemblies during startup.|#]

[#|2008-11-19T11:17:54.005+0530|INFO|sun-appserver9.1|com.sun.jbi.framework|_ThreadID=15;_ThreadName=httpWorkerThread-4848-0;|JBIFW0012: JBI framework startup complete.|#]

[#|2008-11-19T11:18:39.115+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=16;_ThreadName=Thread-63;_RequestID=f4bea30c-4777-4d52-b7fd-02b29f0de33e;|Caught java.lang.NullPointerException while processing CMP beans for application [TestGlassFishEAR]; module [TestGlassFishEJB.jar]: null. See log for details.
java.lang.NullPointerException
        at com.sun.jdo.spi.persistence.support.ejb.ejbc.EjbConversionHelper.getRealRelationRoleDescriptor(EjbConversionHelper.java:394)
        at com.sun.jdo.spi.persistence.support.ejb.ejbc.EjbConversionHelper.getRelationRoleDescriptor(EjbConversionHelper.java:388)
        at com.sun.jdo.spi.persistence.support.ejb.ejbc.EjbConversionHelper.getInverseFieldName(EjbConversionHelper.java:258)
        at com.sun.jdo.api.persistence.mapping.ejb.MappingFile.completeCmrMappings(MappingFile.java:1678)
        at com.sun.jdo.api.persistence.mapping.ejb.MappingFile.intoMappingClasses(MappingFile.java:167)
        at com.sun.jdo.api.persistence.mapping.ejb.MappingGenerator.loadMappingClasses(MappingGenerator.java:272)
        at com.sun.jdo.spi.persistence.support.ejb.ejbc.MappingGenerator.generateMapping(MappingGenerator.java:273)
        at com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator.loadOrCreateMappingClasses(JDOCodeGenerator.java:640)
        at com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator.init(JDOCodeGenerator.java:202)
        at com.sun.jdo.spi.persistence.support.ejb.ejbc.JDOCodeGenerator.init(JDOCodeGenerator.java:161)
        at com.sun.ejb.codegen.CmpCompiler.compile(CmpCompiler.java:189)
        at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:648)
        at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:593)
        at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:290)
        at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:226)
        at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:319)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:240)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
|#]

[#|2008-11-19T11:18:39.506+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=16;_ThreadName=Thread-63;_RequestID=f4bea30c-4777-4d52-b7fd-02b29f0de33e;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- Caught java.lang.NullPointerException while processing CMP beans for application [TestGlassFishEAR]; module [TestGlassFishEJB.jar]: null. See log for details.
        at com.sun.ejb.codegen.CmpCompiler.compile(CmpCompiler.java:315)
        at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:648)
        at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:593)
        at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:290)
        at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:226)
        at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:319)
        at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:240)
        at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
        at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
        at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
|#]

********************************************************************
[Message sent by forum member 'satyaranjan2008' (satyaranjan2008)]

http://forums.java.net/jive/thread.jspa?messageID=317514