glassfish-3

Making Glassfish respond to ajax request JSF 2

左心房为你撑大大i 提交于 2019-12-01 10:58:46
I'm trying to do an ajax request to my server (Glassfish v3.1 open source edition) and for any reason the request never go to the server, running the same proyect on tomcat 7 it works correctly, there's any configuration that i should make on glassfich or anything?? im using eclipse helios, jsf 2 MyFaces 2.1.1, richfaces 4.0.0, and glassfish 3.1 open source edition here's my code <h:panelGroup> <h:inputText id="firstName" value="#{RegistrationForm.first_name}" required="true" requiredMessage="Please enter your first name"> <f:converter converterId="bankingCore.UpperCaseConventer for="firstName

How to serve static web pages from a JSF application using Glassfish

不打扰是莪最后的温柔 提交于 2019-12-01 10:47:23
I have a JSF 2.0 application running under Glassfish 3.1.1 and I need to serve static web pages that are physically located apart from my application root that is created when my WAR file is deployed. I've found various references (like this one and this one ) to defining an alternate docroot using a tag such as <property name="alternatedocroot_1" value="from=/myimages/* dir=/images"/> added to sun-web.xml (which I would presume means glassfish-web.xml in Glassfish 3.1.1). I can't seem to get it to work, however. In my case, I think the problem is that glassfish-web.xml simply isn't defining

JSF 2.0 ViewExpiredException on Glassfish 3.1 when using iframe in Safari

旧街凉风 提交于 2019-12-01 10:33:46
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 the problem doesn't happen If I open my website without frame, it works fine irrespective of browser

Web applications starts on port 8080, where can I change it?

回眸只為那壹抹淺笑 提交于 2019-12-01 08:37:36
问题 I have Netbeans IDE version 6.8, and Glassfish version 3. My glassfish listener is set to port 81, but when I try to run the simplest web application via the Netbenas IDE it tries to run it on port 8080. where can I change it ? Using port 8080 for my web application is out of the question for me. 回答1: A bit late, but this should work... I don't have 6.8 anymore, but the following is true for 6.9 and 6.10m1 - in the directory <home dir>/.netbeans/<version>/config, there is a file called

How to serve static web pages from a JSF application using Glassfish

感情迁移 提交于 2019-12-01 08:37:21
问题 I have a JSF 2.0 application running under Glassfish 3.1.1 and I need to serve static web pages that are physically located apart from my application root that is created when my WAR file is deployed. I've found various references (like this one and this one) to defining an alternate docroot using a tag such as <property name="alternatedocroot_1" value="from=/myimages/* dir=/images"/> added to sun-web.xml (which I would presume means glassfish-web.xml in Glassfish 3.1.1). I can't seem to get

JPA: MySQL says table don't exist, but it exist actually

六眼飞鱼酱① 提交于 2019-12-01 08:34:57
I have the follow script to create the table autolife.log: CREATE TABLE `log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idpoint` int(11) NOT NULL, `value` varchar(10) NOT NULL, `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `fk_point_id` (`idpoint`), CONSTRAINT `fk_point_id` FOREIGN KEY (`idpoint`) REFERENCES `point` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=155562 DEFAULT CHARSET=latin2$$ So I use the JPA Tools to create Entity from Tables in Eclipse Indigo: @Entity public class Log implements

JPA: MySQL says table don't exist, but it exist actually

佐手、 提交于 2019-12-01 06:24:40
问题 I have the follow script to create the table autolife.log: CREATE TABLE `log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idpoint` int(11) NOT NULL, `value` varchar(10) NOT NULL, `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `fk_point_id` (`idpoint`), CONSTRAINT `fk_point_id` FOREIGN KEY (`idpoint`) REFERENCES `point` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB AUTO_INCREMENT=155562 DEFAULT CHARSET=latin2$$ So I use

JPA 2.0 (logging and tracing through) with Glassfish 3.0.1 and NetBeans 6.9.1:

家住魔仙堡 提交于 2019-12-01 03:43:16
I am using JPA 2.0 ( EclipseLink provider) with Glassfish v3.0.1 and NetBeans 6.9.1 and am NOT able to see the queries and other logging information from JPA 2.0. Essentially I want to be able to see all the SQL statements which are being generated by JPA and other related debugging information... Has anyone successfully been able to configure the logging to provide such feedback? I've tried several things to no avail... Any help would be greatly appreciated. Thanks much. Alex H What eventually had done the trick for me was using: <property name="eclipselink.logging.logger" value="org.eclipse

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

戏子无情 提交于 2019-12-01 00:31:34
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 http://localhost:8080/jooky throws a different error INFO: 14:07:41,790 INFO [PortalImpl:4873] Current URL

UrlRewriteFilter with Glassfish

我怕爱的太早我们不能终老 提交于 2019-11-30 20:39:13
问题 How can I integrate URL rewriting in my Glassfish v3 server? The reason why I want to know this is that I am deploying a PHP application into my Glassfish server using Quercus. But Quercus relies on mod_rewrite in the Apache Server to provide URL rewriting and this is not available in Glassfish. 回答1: Well, you have two options: either front your GlassFish instance with Apache and use mod_rewrite or use Tuckey's Url Rewrite Filter I guess the former is not an option (or you wouldn't post this