glassfish-3

javax.faces.FacesException: java.lang.ClassCastException: java.lang.String cannot be cast to javax.faces.component.UIComponent

筅森魡賤 提交于 2019-12-20 01:34:53
问题 My Java EE web application is working fine with Glassfish 2.1. Now I want to migrate to Glassfish 3.1.1 I have followed the modifications provided here my dependencies for richfaces are as follow:- <dependency> <groupId>org.richfaces.framework</groupId> <artifactId>richfaces-api</artifactId> <version>3.3.3.Final</version> </dependency> <dependency> <groupId>org.richfaces.framework</groupId> <artifactId>richfaces-impl-jsf2</artifactId> <version>3.3.3.Final</version> </dependency> <dependency>

How to inject a Session Bean into a Message Driven Bean?

谁都会走 提交于 2019-12-19 19:55:55
问题 I'm reasonably new to Java EE, so this might be stupid.. bear with me pls :D I would like to inject a stateless session bean into a message-driven bean. Basically, the MDB gets a JMS message, then uses a session bean to perform the work. The session bean holds the business logic. Here's my Session Bean: @Stateless public class TestBean implements TestBeanRemote { public void doSomething() { // business logic goes here } } The matching interface: @Remote public interface TestBeanRemote {

Apache ProxyPass and Sessions

和自甴很熟 提交于 2019-12-19 17:40:59
问题 So I'm using Apache to proxy a specific folder to a Glassfish instance. The rules in my conf are: ProxyPass /folder http://localhost:28083 ProxyPassReverse /folder http://localhost:28083 ProxyPassReverseCookiePath /folder http://localhost:28083 It's working fine, except for the sessions. For every subfolder a new session is created. So while I stay in one folder, the session persists, but as soon as I jump into another folder a new session is made. How can I have one session for all

JSF 2.0 ViewExpiredException on Glassfish 3.1 when using iframe in Safari

六月ゝ 毕业季﹏ 提交于 2019-12-19 10:43:50
问题 I have a JSF 2.0 web application running on glassfish 3.1 that is working fine on IE, FF, Safari and Chrome. When I added the url of my website inside a iframe of another website then I am getting ViewExpiredException after clicking any button inside iframe - This happens only on Safari, works fine in IE, FF, Chrome. <iframe style="width: 100%; height: 800px" src="url_of_my_website" frameBorder="0"></iframe> Following are my observations Deployed the same application on glassfish 3.0.1 and

JSF 2.0 ViewExpiredException on Glassfish 3.1 when using iframe in Safari

谁说我不能喝 提交于 2019-12-19 10:43:07
问题 I have a JSF 2.0 web application running on glassfish 3.1 that is working fine on IE, FF, Safari and Chrome. When I added the url of my website inside a iframe of another website then I am getting ViewExpiredException after clicking any button inside iframe - This happens only on Safari, works fine in IE, FF, Chrome. <iframe style="width: 100%; height: 800px" src="url_of_my_website" frameBorder="0"></iframe> Following are my observations Deployed the same application on glassfish 3.0.1 and

Using Servlet 3.0 with Weblogic 10.3

ⅰ亾dé卋堺 提交于 2019-12-19 08:58:52
问题 I am working on a form-based authentication and using following statements. I have realized on the way of implementation that HttpServletRequest->login method comes with servlet 3.0.(with help of stackoverflow users) HttpServletRequest request = getHttpServletRequest(); request.login() So I am using weblogic as an AppServer, I have prepared a war file without any compilation error and it works at glassfish 3.1 appserver. But since weblogic 10.3 has implicit support 2.5 it overwrites Servlet 3

Glassfish 3 - Loading images from a static server

百般思念 提交于 2019-12-19 04:44:17
问题 I'm trying to load images (and other static content) from a server outside of my web application which is deployed to Glassfish v3 . I have the following configs in the web.xml but it does not work on Glassfish (but it works on Tomcat): <servlet> <servlet-name>ExternalImagesServlet</servlet-name> <servlet-class>com.example.servlet.HttpProxyServlet</servlet-class> <init-param> <param-name>RemoteURI</param-name> <param-value>http://ip.of.second.server/website-files</param-value> </init-param>

How do I make Liferay 6.1.0 always redirect to a 404 page when a resource isn't found?

ⅰ亾dé卋堺 提交于 2019-12-19 04:24:07
问题 I have created a simple hook for a Liferay site I have. It contains a 404.jsp that overrides the default Liferay 404. It works fine if I type in a specific page. For example: Going to http://localhost:8080/jooky.jsp throws SEVERE: PWC6117: File "C%3A%5Cbundles%5Cliferay-portal-6.1.0-ce-ga1%5Cglassfish-3.1.1%5Cdomains%5Cdomain1%5Capplications%5Cliferay-portal%5Cjooky.jsp" not found in my Glassfish server log and redirects me to my custom /errors/404.jsp without a problem. However, going to

Impossible to run web application in debug mode with intelliJ on ubuntu with glassfish server

一曲冷凌霜 提交于 2019-12-18 13:30:28
问题 In intelliJ 12.0 on ubuntu 12.04 with glassfish 3.1.2.2, I'm trying to launch my web application in debug mode but I've got this error message: Error starting domain domain1. The server exited prematurely with exit code 134. Before it died, it produced the following output: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize,

Maven Embedded Glassfish plugin

时光怂恿深爱的人放手 提交于 2019-12-18 12:28:47
问题 I cannot seem to get the Maven Glassfish plugin working for the life of me: <project> ... <pluginRepositories> <pluginRepository> <id>glassfish-repository</id> <name>Java.net Repository for Glassfish</name> <url>http://download.java.net/maven/glassfish</url> <layout>default</layout> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </pluginRepository> </pluginRepositories> ... <build> <plugins> <plugin> <groupId>org.glassfish</groupId> <artifactId>maven