I know this question has been asked before here "
http://forums.java.net/jive/click.jspa?searchID=468450&messageID=399204" .
So I downloaded the latest glassfish version (GlassFish3.1-SNAPSHOT (build 4)) also tried with 3.0.1 latest version
but I keep getting the same error message :
[code]
Exception while preparing the app : java.lang.RuntimeException:
Could not resolve a persistence unit corresponding to the persistence-context-ref-name [fr.novae.conseil.gestion.beans.util.UtilBean/em] in the scope of the module called
[gestion-ear#gestion-ejb.jar]. Please verify your application.
[/code]
I've tried moving the persistence.xml file around with no success.
Here is my app structure
[code]
+lib
-gestion-jpa.jar(with entitties and META-INF/persistence.xml)
gestion-ejb.jar
gestion-web.war
[/code]
Also I have the same server under windows and the application deploys properly.
here is my glassfish JVM report.
[code]
Operating System Information:
Name of the Operating System: Linux
Binary Architecture name of the Operating System: amd64, Version: 2.6.18-194.3.1.el5
Number of processors available on the Operating System: 1
System load on the available processors for the last minute: 2.04. (Sum of running and queued runnable entities per minute)
General Java Runtime Environment Information for the VM: 8336_at_prj-gestion.novae.local
JRE BootClassPath: /opt/glassfishv3.1/glassfish/modules/endorsed/jaxb-api-osgi.jar:/opt/glassfishv3.1/glassfish/modules/endorsed/webservices-api-osgi.jar:/opt/glassfishv3.1/glassfish/modules/endorsed/javax.annotation.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/classes:/opt/glassfishv3.1/glassfish/lib/monitor/btrace-boot.jar
JRE ClassPath: /opt/glassfishv3.1/glassfish/modules/glassfish.jar:/opt/glassfishv3.1/glassfish/lib/monitor/btrace-agent.jar
JRE Native Library Path: /opt/glassfishv3.1/glassfish/lib:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
JRE name: OpenJDK 64-Bit Server VM Vendor: Sun Microsystems Inc. Version: 1.6.0-b09
List of System Properties for the Java Virtual Machine:
ANTLR_USE_DIRECT_CLASS_LOADING = true
AS_CONFIG = /opt/glassfishv3.1/glassfish/config/../config
AS_DEF_DOMAINS_PATH = /opt/glassfishv3.1/glassfish/config/../domains
AS_DEF_NODEAGENTS_PATH = ../nodeagents
AS_DERBY_INSTALL = /opt/glassfishv3.1/glassfish/config/../../javadb
AS_IMQ_BIN = /opt/glassfishv3.1/glassfish/config/../../mq/bin
AS_IMQ_LIB = /opt/glassfishv3.1/glassfish/config/../../mq/lib
AS_INSTALL = /opt/glassfishv3.1/glassfish/config/..
GlassFish_Platform = Felix
catalina.base = /opt/glassfishv3.1/glassfish/domains/domain1
catalina.home = /opt/glassfishv3.1/glassfish/domains/domain1
catalina.useNaming = false
com.sun.aas.agentRoot = /opt/glassfishv3.1/glassfish/nodeagents
com.sun.aas.configRoot = /opt/glassfishv3.1/glassfish/config
com.sun.aas.derbyRoot = /opt/glassfishv3.1/javadb
com.sun.aas.domainsRoot = /opt/glassfishv3.1/glassfish/domains
com.sun.aas.hostName = prj-gestion.novae.local
com.sun.aas.imqBin = /opt/glassfishv3.1/mq/bin
com.sun.aas.imqLib = /opt/glassfishv3.1/mq/lib
com.sun.aas.installRoot = /opt/glassfishv3.1/glassfish
com.sun.aas.installRootURI = file:/opt/glassfishv3.1/glassfish/
com.sun.aas.instanceName = server
com.sun.aas.instanceRoot = /opt/glassfishv3.1/glassfish/domains/domain1
com.sun.aas.instanceRootURI = file:/opt/glassfishv3.1/glassfish/domains/domain1/
com.sun.aas.javaRoot = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
com.sun.enterprise.config.config_environment_factory_class = com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
com.sun.enterprise.glassfish.bootstrap.args = #Mon Jun 07 11:44:38 CEST 2010
-domainname=domain1
-verbose=false
-domaindir=/opt/glassfishv3.1/glassfish/domains/domain1
-asadmin-classpath=/opt/glassfishv3.1/glassfish/modules/admin-cli.jar
-asadmin-classname=com.sun.enterprise.admin.cli.AsadminMain
-instancename=server
GlassFish_Platform=Felix
-read-stdin=true
com.sun.aas.installRoot=/opt/glassfishv3.1/glassfish
-asadmin-args=start-domain,,,domain1
-type=DAS
-debug=false
hk2.startup.context.mainModule=org.glassfish.core.kernel
com.sun.aas.instanceRoot=/opt/glassfishv3.1/glassfish/domains/domain1
__time_zero=1275903878061
-upgrade=false
com.sun.enterprise.hk2.cacheDir = /opt/glassfishv3.1/glassfish/domains/domain1/osgi-cache/felix
com.sun.enterprise.jaccprovider.property.repository = /opt/glassfishv3.1/glassfish/domains/domain1/generated/policy
com.sun.enterprise.security.httpsOutboundKeyAlias = s1as
common.loader = ${catalina.home}/common/classes,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar
ear.home = /opt/glassfishv3.1/glassfish/modules/ear
felix.config.properties = file:/opt/glassfishv3.1/glassfish/osgi/felix/conf/config.properties.nojaxb
felix.fileinstall.bundles.new.start = true
felix.fileinstall.dir = /opt/glassfishv3.1/glassfish/modules/autostart/
felix.fileinstall.log.level = 3
felix.fileinstall.poll = 5000
felix.system.properties = file:/opt/glassfishv3.1/glassfish/osgi/felix/conf/system.properties
file.encoding = UTF-8
file.encoding.pkg = sun.io
file.separator = /
glassfish.version = GlassFish3.1-SNAPSHOT (build 4)
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /opt/glassfishv3.1/glassfish/modules/glassfish.jar:/opt/glassfishv3.1/glassfish/lib/monitor/btrace-agent.jar
java.class.version = 50.0
java.endorsed.dirs = /opt/glassfishv3.1/glassfish/modules/endorsed:/opt/glassfishv3.1/glassfish/lib/endorsed
java.ext.dirs = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/ext:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/jre/lib/ext:/opt/glassfishv3.1/glassfish/domains/domain1/lib/ext
java.home = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
java.io.tmpdir = /tmp
java.library.path = /opt/glassfishv3.1/glassfish/lib:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.rmi.server.randomIDs = true
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 1.6.0-b09
java.security.auth.login.config = /opt/glassfishv3.1/glassfish/domains/domain1/config/login.conf
java.security.policy = /opt/glassfishv3.1/glassfish/domains/domain1/config/server.policy
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.6
java.util.logging.config.file = /opt/glassfishv3.1/glassfish/domains/domain1/config/logging.properties
java.vendor = Sun Microsystems Inc.
java.vendor.url =
http://java.sun.com/
java.vendor.url.bug =
http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.6.0
java.vm.info = mixed mode
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Sun Microsystems Inc.
java.vm.version = 1.6.0-b09
javax.net.ssl.keyStore = /opt/glassfishv3.1/glassfish/domains/domain1/config/keystore.jks
javax.net.ssl.keyStorePassword = changeit
javax.net.ssl.trustStore = /opt/glassfishv3.1/glassfish/domains/domain1/config/cacerts.jks
javax.net.ssl.trustStorePassword = changeit
javax.rmi.CORBA.PortableRemoteObjectClass = com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject
javax.rmi.CORBA.StubClass = com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl
javax.rmi.CORBA.UtilClass = com.sun.corba.ee.impl.javax.rmi.CORBA.Util
javax.security.jacc.PolicyConfigurationFactory.provider = com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
jdbc.drivers = org.apache.derby.jdbc.ClientDriver
jpa.home = /opt/glassfishv3.1/glassfish/modules/jpa
line.separator =
org.glassfish.web.rfc2109_cookie_names_enforced = false
org.jvnet.hk2.osgimain.autostartBundles = glassfish.jar
org.jvnet.hk2.osgimain.bundlesDir = /opt/glassfishv3.1/glassfish/modules
org.jvnet.hk2.osgimain.excludedSubDirs = autostart/
org.omg.CORBA.ORBClass = com.sun.corba.ee.impl.orb.ORBImpl
org.omg.CORBA.ORBSingletonClass = com.sun.corba.ee.impl.orb.ORBSingleton
org.osgi.framework.storage = /opt/glassfishv3.1/glassfish/domains/domain1/osgi-cache/felix
os.arch = amd64
os.name = Linux
os.version = 2.6.18-194.3.1.el5
osgi.shell.telnet.ip = 127.0.0.1
osgi.shell.telnet.maxconn = 1
osgi.shell.telnet.port = 6666
package.access =
package.definition =
path.separator = :
security.home = /opt/glassfishv3.1/glassfish/modules/security
server.loader = ${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
shared.loader = ${catalina.home}/shared/classes,${catalina.home}/shared/lib/*.jar
sun.arch.data.model = 64
sun.boot.class.path = /opt/glassfishv3.1/glassfish/modules/endorsed/jaxb-api-osgi.jar:/opt/glassfishv3.1/glassfish/modules/endorsed/webservices-api-osgi.jar:/opt/glassfishv3.1/glassfish/modules/endorsed/javax.annotation.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/classes:/opt/glassfishv3.1/glassfish/lib/monitor/btrace-boot.jar
sun.boot.library.path = /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64
sun.cpu.endian = little
sun.cpu.isalist =
sun.io.unicode.encoding = UnicodeLittle
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot 64-Bit Server Compiler
sun.os.patch.level = unknown
user.country = FR
user.dir = /opt/glassfishv3.1/glassfish/domains/domain1/config
user.home = /root
user.language = fr
user.name = root
user.timezone = Europe/Paris
user.zoneinfo.dir = /usr/share/javazi
web.home = /opt/glassfishv3.1/glassfish/modules/web
[/code]
any ideas?
thanks in advance
[Message sent by forum member 'ufasoli']
http://forums.java.net/jive/thread.jspa?messageID=473100