glassfish-3

JavaEE 6: javax.naming.NameAlreadyBoundException: Use rebind to override

為{幸葍}努か 提交于 2019-12-29 06:45:37
问题 I have a business interface being implemented by two EJBs. UserManagementService @Remote public interface UserManagementService { // ... } UserManagementServiceJpaImpl @Stateless(name="userManagementServiceJpaImpl") public class UserManagementServiceJpaImpl implements UserManagementService { @EJB(beanName="userManagementDaoJpaImpl") private UserManagementDao userManagementDao; // ... } UserManagementServiceMockImpl @Stateless(name="userManagementServiceMockImpl") public class

Changes in property files does not reflect in page while using Glassfish 3.1.2 server

依然范特西╮ 提交于 2019-12-25 14:35:28
问题 I am using NetBeans IDE but I am using Glassfish externally(means not that which comes with NetBeans. I am using GlassFish through terminal in ubantu). In my project I am using several property file to load label on page. But the problem is when modification made to property file at run time, that changes are not reflected on page. I need to restart Glassfish server. ResourceBundle entry are made in faces-config file. //faces-config.xml <locale-config> <default-locale>en</default-locale> <

Changes in property files does not reflect in page while using Glassfish 3.1.2 server

左心房为你撑大大i 提交于 2019-12-25 14:34:55
问题 I am using NetBeans IDE but I am using Glassfish externally(means not that which comes with NetBeans. I am using GlassFish through terminal in ubantu). In my project I am using several property file to load label on page. But the problem is when modification made to property file at run time, that changes are not reflected on page. I need to restart Glassfish server. ResourceBundle entry are made in faces-config file. //faces-config.xml <locale-config> <default-locale>en</default-locale> <

Changes in property files does not reflect in page while using Glassfish 3.1.2 server

你说的曾经没有我的故事 提交于 2019-12-25 14:34:14
问题 I am using NetBeans IDE but I am using Glassfish externally(means not that which comes with NetBeans. I am using GlassFish through terminal in ubantu). In my project I am using several property file to load label on page. But the problem is when modification made to property file at run time, that changes are not reflected on page. I need to restart Glassfish server. ResourceBundle entry are made in faces-config file. //faces-config.xml <locale-config> <default-locale>en</default-locale> <

configuring a MySQL DataSource in GlassFish 3 Application Server

你离开我真会死。 提交于 2019-12-25 07:55:10
问题 Does anyone know the steps for configuring a mysql datasource in glassfish 3? I am stuck on what the datasourceName should be. Here are the steps I have been following. Are they correct? Am I missing a step? BTW, I have glassfish 3.1.2 installed as part of Netbeans 7.2 on Mac OSX Lion 1) Install MySQL using XAMPP 2) Download /jars/jdbc-drivers/mysql-connector-java-5.1.22 and add to CLASSPATH 3) From Netbeans, start glassfish and launch Domain Admin Console 4) Go to Common Tasks > Resources >

Glassfisch MySQL ping ERROR

左心房为你撑大大i 提交于 2019-12-25 05:59:06
问题 i have an glassfish server and i try to use a mysql database. what i did: i installed glassfisch3 i added galssfish3/bin to environment variables i installed a domain und glassfish3/glassfish/domains/domain1 i added mysql-connector-java-5.1.25-bin.jar to glassfish3/glassfish/domains/domain1/lib i created a datasource in my glassfisch (Name: myDataSource, ClassName com.mysql.jdbc.jdbc2.optional.MysqlDataSource, Resource Type: javax.sql.DataSource) i Saved everything When i now go to my new

Glassfish built in RESTful EJB interface in addition to SOAP

二次信任 提交于 2019-12-25 05:22:29
问题 I am currently learning Glassfish and I see that it is possible to add the annotation @WebService (javax.jws.WebService) and the container will automatically enable a SOAP web service for the particular bean. Since I am not really interested in using SOAP, I was wondering if the same can be accomplished using the server built-in functionality but for a RESTful service, without explicitly writing my own. Thanks 回答1: JAX-RS (the standard) and Jersey (one implementation of this standard) is what

GlassFish as windows service

被刻印的时光 ゝ 提交于 2019-12-25 05:03:41
问题 I am using GlassFish 3.1.2. I want to create a service of GlassFish so that each the system start it will automatically start the GlassFish domain. In default domain domain1, there is a cluster cluster1 having two instances instance1 and instance2. But when I use the command... asadmin>domain1Service.exe start It starts the domain, but clusters are not started. So How can I make a service which can start clusters ?? Do I have to create separate service for each instance within a cluster ??

How to find the path to a .txt file in glassfish v3.0

十年热恋 提交于 2019-12-25 03:57:16
问题 In my aplication i want to send a html template to the users email. Everithing works correctly when i programatically create the html, but what i want to do now, is read the html text from within a file in my application and send it. I get a FileNotFoundException, and i dont know how to find that .txt file. See the code: public void sendAccountActivationLinkToBuyer(String destinationEmail, String name) { // Destination of the email String to = destinationEmail; String from = "myEmail@gmail

Jasper Report Generates a PDF and then Glassfish crashes/shutsdown

我的梦境 提交于 2019-12-25 03:36:43
问题 I am running an app I have developed in JSF/Java and as soon as I got JasperReports ExporttoPDFFile to start working and ran the app, the jrxml is compiled and displayed, then exported to a pdf file, that looks exactly as it should and the proper page is returned by the JSF and loads but then Glassfish 3 stops working and I have to start or restart it before I can continue to use the app again, everything works fine until the JasperReports compile and export... any ideas? http://pastebin.com