glassfish-3

Configuring for RichFaces: java.lang.ClassNotFoundException: org.ajax4jsf.Filter

妖精的绣舞 提交于 2019-12-12 12:21:17
问题 I have a project that contains some RichFaces components. All other components get displayed but the RichFaces. From the server logs I get: java.lang.ClassNotFoundException: org.ajax4jsf.Filter I am aware that with RichFaces 4.0 no filters are needed in the Web.xml. Here is my library : commons-beanutils-1.7.0.jar commons-collections-3.2.jar commons-digester-1.8.jar commons-digester.jar commons-discovery.jar commons-logging-1.0.4.jar cssparser-0.9.5.jar guava-r08.jar jhighlight-1.0.jar jsf

Facelet tag parameter not recognized by PrimeFaces p:ajax

删除回忆录丶 提交于 2019-12-12 08:43:58
问题 I have a simple Facelet tag: <ui:composition> <ui:insert /> </ui:composition> which is used in order to avoid declaring multiple c:set tags. Let's say I registered it in the facelets taglib library with the name view , and use it like this: <my:view bean="#{myController}"> <p:inputText value="#{bean.value}> <p:ajax event="blur" process="@this" listener="#{bean.handleValueChanged}" /> </p:inputText> </my:view> The attribute value is perfectly resolved by p:inputText , but p:ajax throws this:

Hello World! with Remote Stateless Session Bean

梦想与她 提交于 2019-12-12 08:13:15
问题 Good day! I'm newcomer in the JavaEE 6. I tried to create a started project with use of the following tutorial: Creating and Running an Application Client on the GlassFish Server. I created four projects step by step: JavaSE lib to store an EJB Remote Interface, an EJB Module and otherwise as ther're described in the tutorial. My platform: Distributor ID: Ubuntu Description: Ubuntu 10.10 Release: 10.10 Codename: maverick jdk1.6.0_26 Netbean7.2(Build 201207171143) GlassFish Server 3+ My remote

Glassfish 3.1 - CXF and Jersey Clients Deployed in Same War?

我的未来我决定 提交于 2019-12-11 20:13:06
问题 I am trying to deploy a war to Glassfish 3.1.1 that makes use of a CXF webservice client library and a Jersey webservice client library. In order to get Glassfish to use CXF instead of Metro as the JAX-WS implementation, I am including a glassfish-web.xml file with the following contents: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN' 'http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd'>

Problems with Omnifaces GzipResponseFilter and page redirect (Glassfish only)

[亡魂溺海] 提交于 2019-12-11 17:26:37
问题 I get an error when I try to redirect a page in JSF action with a h:commandLink when I use the Omnifaces GzipResponseFilter (only in Glassfish). Exception: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END Environment Glassfish 3 Omnifaces 1.7 (GzipResponseFilter) Mojarra 2.1.27 JDK 6 web.xml <filter> <filter-name>gzipResponseFilter</filter-name> <filter-class>org.omnifaces.filter.GzipResponseFilter</filter-class> </filter> <filter-mapping> <filter-name

Deploying WAR with CXF in Glassfish V3

佐手、 提交于 2019-12-11 13:04:00
问题 I'm trying to deploy a WAR in GF V3 that has CXF as a dependency and I get the following exception: [#|2011-02-08T07:34:15.736-0800|WARNING|oracle-glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=32;_ThreadName=http-thread-pool-8080-(2);|StandardWrapperValve[MyServlet]: PWC1406: Servlet.service() for servlet MyServlet threw exception com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.api.pipe.TransportPipeFactory: Provider com.sun.enterprise.jbi

JavaEE 6: java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null

烈酒焚心 提交于 2019-12-11 12:11:49
问题 Yesterday when I was working on my JavaEE application, it was happily getting deployed to Glassfish 3.1 and all the [web, ejb, jpa] engines were working and I was able to interact with database without any problem. But ever since I started working today I've been having java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null error when I try to retrieve something from database. The application is still deploying without any problems but I can't see the [jpa]

setting startlevel for OSGI bundle

让人想犯罪 __ 提交于 2019-12-11 10:47:20
问题 (I use glassfish 3.1, felix) I have a log bundle that needs to be started before other bundles in my glassfish server. Is there a way to configure startlevel for a single OSGI bundle? Any of the following ways will be fine: configuring a properties file, solution on java side, header in bundle manifest. thanks. 回答1: In Felix, you can change the launcher properties (for instance, conf/config.properties ) to start bundles with different start levels. You can use the felix.auto.deploy.install.<n

Glassfish: deploy of multiple applications, some of them with SSL

做~自己de王妃 提交于 2019-12-11 10:22:05
问题 A GlassFish server hosts some applications and only some of them need SSL. May be I can configure this in web.xml of the single application writing: <transport-guarantee>CONFIDENTIAL</transport-guarantee> Is this the correct way ? I thought I could achieve the same result using glassfish admin console. In the default glassfish installation there are two http listener, one with SSL on port 8181 and the other on port 8080. There is a default virtual server which has both listener. I removed

Building different maven artifacts for different containers

怎甘沉沦 提交于 2019-12-11 08:26:11
问题 I want to create a project (multimodule) that runs both on Tomcat and on a full Java EE server. Since tomcat is missing a couple of libraries for that I need to include them for Tomcat, but a full Java EE container has these libraries and might even produce a conflict if I include them anyways. I want to have all my html files in one place (probably the Java EE container WAR project) and then have another module that builds the same war, but with the added dependencies in the WAR-file. How do