maven 2 - Do I need to install glassfish server to use it as embedded server in application? -
i trying use glassfish embedded server in ejb3.1 project. below maven dependencies.. when run tests fails deploy ejb modules. need set javaee.home or more variable ?
<dependency> <groupid>org.glassfish.extras</groupid> <artifactid>glassfish-embedded-all</artifactid> <version>3.1-snapshot</version> <scope>test</scope> <type>jar</type> </dependency> <dependency> <groupid>org.glassfish.extras</groupid> <artifactid>glassfish-embedded-static-shell</artifactid> <version>3.1-snapshot</version> <scope>test</scope> <type>jar</type> </dependency> <dependency> <groupid>javax</groupid> <artifactid>javaee-api</artifactid> <version>6.0</version> <scope>provided</scope> </dependency>
the exception is..
caused by: org.omg.corba.data_conversion: vmcid: sun minor code: 214 completed: no . . . caused by: java.lang.illegalstateexception: java.lang.runtimeexception: java.util.missingresourceexception: can't find resource bundle java.util.propertyresourcebundle, key iiop.cannot_find_keyalias
no. dont need glassfish-embedded-static-shell.jar. if want use ejb3.1 glassfish-embedded-all jar enough. if want access jpa data sources ejb3 need domain.xml file in classpath. need pass property "org.glassfish.ejb.embedded.glassfish.installation.root" while creating ejb container in client code.(like ejbcontainer.createejbcontainer(prop)). value of property should folder name (ex. glassfish).
the folder should have domains\domain1\config\domain.xml file.
you can download , install glassfish v3 , installation can copy file.
Comments
Post a Comment