Glassfish 3.1.1 – How to enable secure admin for different domains?

You must specify the port the DAS (Domain Administration Server) is running on. For example: asadmin –host localhost –port 4848 enable-secure-admin asadmin –host localhost –port 5858 enable-secure-admin asadmin –host localhost –port 6868 enable-secure-admin Of course, this assumes the ports are for d1, d2, and d3 respectively. Hope this helps.

How to refresh JPA entities when backend database changes asynchronously?

I recommend adding an @Startup @Singleton class that establishes a JDBC connection to the PostgreSQL database and uses LISTEN and NOTIFY to handle cache invalidation. Update: Here’s another interesting approach, using pgq and a collection of workers for invalidation. Invalidation signalling Add a trigger on the table that’s being updated that sends a NOTIFY whenever … Read more

Could not open ServletContext resource

Do not use classpath. This may cause problems with different ClassLoaders (container vs. application). WEB-INF is always the better choice. <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring-config.xml</param-value> </context-param> and <bean id=”placeholderConfig” class=”org.springframework.beans.factory.config.PropertyPlaceholderConfigurer”> <property name=”location”> <value>/WEB-INF/social.properties</value> </property> </bean>

How do I specify the JDK for a GlassFish domain?

Here you can find how to set path to JDK for Glassfish: http://www.devdaily.com/blog/post/java/fixing-glassfish-jdk-path-problem-solved Check glassfish\config\asenv.bat where java path is configured REM set AS_JAVA=C:\Program Files\Java\jdk1.6.0_04\jre/.. set AS_JAVA=C:\Program Files\Java\jdk1.5.0_16

Location of GlassFish Server Logs

In general the logs are in /YOUR_GLASSFISH_INSTALL/glassfish/domains/domain1/logs/. In NetBeans go to the “Services” tab open “Servers”, right-click on your Glassfish instance and click “View Domain Server Log”. If this doesn’t work right-click on the Glassfish instance and click “Properties”, you can see the folder with the domains under “Domains folder”. Go to this folder -> … Read more

Cargo plugin throws CargoException when deploying on Glassfish – Deployment has failed: null

The default password is adminadmin. In case you have no password, then use “” using Cargo as password will lead to an error, if the password field is empty. Use below code enter code here enter code here org.codehaus.cargo enter code here cargo-maven2-plugin enter code here 1.7.16 enter code here … enter code here enter … Read more

What does ‘URI has an authority component’ mean?

An authority is a portion of a URI. Your error suggests that it was not expecting one. The authority section is shown below, it is what is known as the website part of the url. From RFC3986 on URIs: The following is an example URI and its component parts: foo://example.com:8042/over/there?name=ferret#nose \_/ \______________/\_________/ \_________/ \__/ | … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)