glassfish

Java Enterprise doesn't appear in IntelliJ

前提是你 提交于 2020-01-14 12:41:51
问题 I have problem about importing Java EE glassfish server to my IntelliJ. I have searched nothing on the web. When I want to create a new glassfish project, I don't have option for it. I can't add image cause I don't have reputation for it. I add direct link to image below text. Screenshots: 回答1: It appears you have a community version of IntelliJ. Tools to support enterprise frameworks, like JavaEE or Grails, are only available in paid version. If need a free JavaEE IDE, I recommend Netbeans

Set request character encoding of JSF input submitted values to UTF-8 in GlassFish

99封情书 提交于 2020-01-14 09:16:10
问题 I have a problem with the values inserted in all my <h:inputText> fields. Some characters are not encoded in the right way. E.g. if I put ciò in the input field I get ciò . How can I allow a user to insert text with those characters and save them correctly? The problem in not in the DB encoding since I already have the wrong value before inserting it in the DB. I'm using JSF 2 with Facelets and GlassFish as application server. 回答1: You need to tell Glassfish to use UTF-8 to decode paramters

Feed rendered jsp pages through htmltidy

妖精的绣舞 提交于 2020-01-14 08:04:06
问题 I have a Java project running on Glassfish that renders some ugly looking HTML. Its a side effect from using various internal and external JSP libraries. I would like to set up some sort of post-render filter that would feed the final HTML through HTMLTidy so that the source is nice and neat to aid debugging. Is this possible? Is there a built in mechanism to perform some action after the server renders the JSPs into HTML? Can that action get the generated HTML as a string and manipulate it?

Database Connection does not release after idle time out in glassfish

我与影子孤独终老i 提交于 2020-01-14 06:17:03
问题 i am using Glassfish 3 & mysql5.6.11. i have created JDBC connection pool in glassfish . Initial and Minimum Pool Size: - 8 Maximum Pool Size: -30 Pool Resize Quantity:- 10 Idle Timeout: - 60 (second). Max Wait Time:- 2500 (millisecond). with this parameter i have created pool setting . i have set pool resize quantity value . when no of connections increase, it does not release after idle time-out. next time when i hit url it again increase no of connection, it does not reuse already open

How to set up hibernate to use Glassfish connection pool?

巧了我就是萌 提交于 2020-01-13 19:34:07
问题 I have set up a connection pool in Glassfish with a jndi resource for it also setup. I am stumped on how to configure hibernate to go get it. I have come across alot of write ups to configure it to use C3P0 connection pool. Well I am lost. I found that I need to set: hibernate.connection.datasource hibernate.jndi.url hibernate.jndi.class hibernate.connection.username hibernate.connection.password Would datasource be the same as the hibernate.connection.datasource set in the connection pool?

Container testing of jar with embedded glassfish using gradle fails

烈酒焚心 提交于 2020-01-13 05:08:05
问题 I am using JUnit and embedded glassfish to test some code using CDI. This seems fairly straightforward but I must be missing something. I've created a simple project which demonstrates the problem. https://github.com/dantwinkler/container-test-embedded-glassfish This is the stack trace if no parameters are set. If the domain.xml is specified in the embedded container properties the tests still fail but because it says the test can not be found. The next step is to try to get things working

WebSocket Error during Handshake Unexpected code 200

白昼怎懂夜的黑 提交于 2020-01-12 14:11:14
问题 I have been using Glassfish 4 as my server. I am opening a WebSocket connect using this statement: webSocket = new WebSocket(link); Where: link = 'ws://localhost:8080/CollabEdit/Document/file333B1CDF85-DDDC-E411-8299-F82FA8BE8622'; And in the Server File: @ServerEndpoint(value="/file333B1CDF85-DDDC-E411-8299-F82FA8BE8622", encoders = {MessageEncoder.class}, decoders = {MessageDecoder.class}) Actually, I have been using URL mapping as well, this " file333B1CDF85-DDDC-E411-8299-F82FA8BE8622 "

How to add glassfish tools to eclipse oxygen 3a

纵饮孤独 提交于 2020-01-12 04:44:44
问题 I downloaded Eclipse Oxygen but i don't get glassfish tools installed in this IDE. It's a Oxygen 3A 64 bit running on a JDK 8 Update 172. When i try to install the tools via Marketplace it states that the tools are not available. Screenshot Marketplace Screenshot error message Here the Entry in the Eclipse Error Log for this: eclipse.buildId=4.7.3.M20180330-0640 java.version=1.8.0_172 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE Framework

Secure Admin must be enabled to access the DAS remotely - Acess Glassfish Admin Console with Docker

牧云@^-^@ 提交于 2020-01-12 03:58:06
问题 I try to deploy my web app on glassfish which is on a docker container. When I access to the Admin Console ( [IP]:4848 ), I can access to login page but there is this error message and I can't login: Secure Admin must be enabled to access the DAS remotely. So I find on other post that I need to add these line in bin folder: ./asadmin start-domain ./asadmin change-admin-password ./asadmin enable-secure-admin ./asadmin stop-domain ./asadmin start-domain But I can't do it because my glassfish

Glassfish v3 / JNDI entry cannot be found problems!

冷暖自知 提交于 2020-01-12 03:28:10
问题 I've been having problems trying to call an EJB's method from a Java Application Client. Here is the code. EJB Remote Interface package com.test; import javax.ejb.Remote; @Remote public interface HelloBeanRemote { public String sayHello(); } EJB package com.test; import javax.ejb.Stateless; @Stateless (name="HelloBeanExample" , mappedName="ejb/HelloBean") public class HelloBean implements HelloBeanRemote { @Override public String sayHello(){ return "hola"; } } Main class (another project)