glassfish-4

Shiro.ini file requires glassfish clean wipe to update

Deadly 提交于 2019-12-12 04:34:50
问题 We're working with Apache Shiro for our user authentication on glassfish 4. We've run into an issue where any changes to the shiro.ini file don't properly get implemented. No matter how many times we push, even if we clean and build first, the system acts like it is using the old version of the .ini file. The only fix is to take everything off of glassfish, wipe it clean, and then a new install will work. This solution is obviously untenable, is there something we are missing? I'd like to

ClassCastException: Lucene40PostingsFormat on Hibernate Search

余生长醉 提交于 2019-12-12 04:20:55
问题 I am trying using Hibernate-Search for add full text search capabilities but when i try deploy the ear proyect on glashfish application server i get the Lucene40PostingsFormat classCastException. here it is the complete server log: Información: HHH000412: Hibernate Core {[WORKING]} Información: HHH000206: hibernate.properties not found Información: HHH000021: Bytecode provider name : javassist Información: HCANN000001: Hibernate Commons Annotations {5.0.1.Final} Información: HHH000400: Using

Do I need to include the Jersey Jars in my EAR on Glassfish4.0 server?

帅比萌擦擦* 提交于 2019-12-12 01:25:56
问题 I am trying to use Firefox poster to test a Jersey restful webservice running on Glassfish 4.0. I am getting a HTTP Server 500 error returned to the Poster output when I return a java class as xml. I do not get an error when I return a String as xml. This makes me wonder if I need to include any of the JAX-RS jars or Jersey jars in my ear on Glassfish. I was thinking these were included in the Glassfish modules so I am not including them in my WEB-INF lib. Here is an example of what works,

JPA Entity Class Instances

烂漫一生 提交于 2019-12-11 23:09:52
问题 I have a very curious problem when I deploy my Java EE application to Glassfish. I have an Eclipse EAR project that references a web project (containing a servlet), and an EJB project (that has one EJB) and a JPA Project (that has one @Entity). In my servlet I call the EJB, which in turn performs the following query: final CriteriaBuilder criteriaBuilder = this.entityManager.getCriteriaBuilder(); final CriteriaQuery<Country> criteriaQuery = criteriaBuilder.createQuery(Country.class); final

Glassfish v4 Transaction Manager not found

你说的曾经没有我的故事 提交于 2019-12-11 18:04:30
问题 I'm getting the following exception thrown when redeploying an application from IntelliJ to Glassfish v4: [2013-09-11T12:55:44.122+0300] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core] [[ Exception while deploying the app [gtwcustreporter_war_exploded] : Exception [EclipseLink-23004] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.TransactionException Exception Description: Error obtaining the Transaction Manager Internal Exception:

Error occurred during deployment: Exception while deploying the app : UnsupportedClassVersionError

喜你入骨 提交于 2019-12-11 14:56:01
问题 An error has occurred Error occurred during deployment: Exception while deploying the app [EnterpriseApplication1] : UnsupportedClassVersionError: Class mn.interactive.module.meta.dao.MetaDataDao has unsupported major or minor version numbers, which are greater than those found in the Java Runtime Environment version 1.7.0_02. Please see server.log for more details. When upload EnterpriseApplication1.ear file into GlassFish Service. How to solve this error? 回答1: You are executing your

Glassfish v4.0 cannot work on Mac OSX 10.6.8 + JDK 7.0 U40

感情迁移 提交于 2019-12-11 12:08:03
问题 I had been using 2010 Macbook Pro for a while and had updated the Mac OSX to the latest version, and I had been suffering the slow speed for a long time. So last night I googled and do some cleanup , such as fix disk permissions, but the Mac was still slow. And someone suggest to re-install MacOSX. I was thinking it was the new version of Mac OSX's problem, I had the same kind of problems happen on the 1st version IPad either. After I reinstalled, the computer became much more faster. But I

Cannot perform CDI in Glassfish 4.0

坚强是说给别人听的谎言 提交于 2019-12-11 11:59:05
问题 I am trying to run a particularly simple test case using the latest promoted build of Glassfish 4.0. I have tried placing META-INF/beans.xml in all possible permutations including its own jar in WEB-INF/lib The best I get is the following errors with a layout+sources that are listed after it: WARNING: Error while trying to load Bean Class WEB-INF.classes.com.example.cdibug.Test : java.lang.ClassNotFoundException: WEB-INF.classes.com.example.cdibug.Test WARNING: Error while trying to load Bean

JavaServer Faces 2.2 composite component rendered with enclosing <html> … </html> tags

僤鯓⒐⒋嵵緔 提交于 2019-12-11 11:52:27
问题 While migrating a project from JavaServer Faces 2.1 / Java EE 5 to JavaServer Faces 2.2 / Java EE 7 web profile on GlassFish 4, I encountered invalid HTML code because of additional <html> ... </html> tags for every instance of a composite component in the JSF code. Environment: Mojarra 2.2.0 (GlassFish 4.0), NetBeans 7.3.1, JDK 7 Steps to reproduce: create a new "Java EE 7 Web" project with JavaServer Faces and choose JSF 2.2 server library in index.html, select the HTML body text ("Hello

Error on hibernate second level caching (Spring 4, Hibernate 4)

匆匆过客 提交于 2019-12-11 11:33:26
问题 I got an error in my glassfish4 and netbeans. Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.spi.CacheImplementor] org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could