glassfish-3

How to configure GlassFish logging to show milliseconds in timestamps?

两盒软妹~` 提交于 2019-12-18 06:59:57
问题 I have to admit, configuring logging has me a bit baffled :(..., so I hope that someone here can help. Basically, I need to configure the logging to server.log so that the timestamps include milliseconds. The thing is, it looks like the default logging.properties is configured for that, but the actual log messages don't look anything like the format string that is the logging.properties, so I can't figure out: 1) What (file) exactly is controlling the log format messages in server.log 2) What

Netbeans deployment fails after class rename

自闭症网瘾萝莉.ら 提交于 2019-12-18 05:59:24
问题 I am writing a test client for a webservice. It's a Netbeans 6.9.1 WebApplication using JSF framework. I have one managed bean that calls the webservice. Everything worked fine until I noticed a typo in my bean class name. It was serviceBean and I renamed it to ServiceBean with first letter upper case. I used safe rename function of Netbeans and both the filename and class signature changed as expected. But from then I had a lot of trouble running my application on Glassfish 3.0.1. I can

access a Local Session Bean from another EAR?

回眸只為那壹抹淺笑 提交于 2019-12-18 05:22:50
问题 How can I call a Local Session Bean inside an EAR from another EAR, both deployed in the same Glassfish v3 domain? This is the structure: Glassfish v3 Domain1 EAR1 EAR1-EJB.jar class TestSessionBean <-- @Stateless common.jar interface TestSessionLocal <-- @Local EAR2 EAR2-EJB.jar class TestSessionBeanClient <-- @Singleton, @LocalBean common.jar interface TestSessionLocal <-- @Local TestSessionBean implements TestSessionLocal, boths EARs has common.jar. I need to use TestSessionBean from

Spring Boot app deployed to Glassfish is giving strange results

ぐ巨炮叔叔 提交于 2019-12-18 04:59:10
问题 As mentioned here, I am having a heck of a time getting my small Spring-Boot project to deploy "correctly" to Glassfish. It runs fine using the embedded Tomcat, but once I try and move it into my organization's environment (Glassfish 3.1.2) I get some strange behavior. Thinking it was my code, I reverted to the time-tested "Hello World"-approach and built a super-basic app following this tutorial on Spring's blog. I did make a few very minor deviations as I went along but nothing that should

Custom Glassfish Security Realm does not work (unable to find LoginModule)

本秂侑毒 提交于 2019-12-18 03:38:25
问题 I'm trying to get a Custom Security Realm in Glassfish working (i tried 3.0.1 final and 3.1 B33). I read nearly all tutorials about this, but it doesn't not work on my System. I'm getting the error Login failed: javax.security.auth.login.LoginException: unable to find LoginModule class: com.company.security.realm.CustomLoginModule when trying to login. Here is what i did: I created a little Maven project, which contains the needed Realm class, CustomRealm, and the corresponding LoginModule,

Unmarshal a single element list fails

可紊 提交于 2019-12-17 21:07:13
问题 I'm running a sample (which i can't find anymore) from Blaise Doughans blog on Glassfish 3 using EclipseLink 2.5 MOXy for JAXB service. @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class Company { @XmlElementWrapper(name="employees") @XmlElement(name = "employee", type=Employee.class) private List<Employee> employees; } @XmlAccessorType(XmlAccessType.FIELD) public class Employee { private String id; private String name; } I added some annotations to the classes, to produce the

Glassfish 3.1 CREDENTIAL_ERROR in Eclipse

梦想与她 提交于 2019-12-17 19:22:03
问题 I can't start Glassfish 3.1 on Eclipse Indigo with "Oracle Glassfish Server Tools" plugin on Windows 7. After installing the plugin, I've chosen "New" -> "Server" in the server view and clicked on GlassFish 3.1 and downloaded the installation through Eclipse. Every time I try to start it, I've the following message: The Eclipse plugin cannot communicate with the GlassFish server, status is :CREDENTIAL_ERROR I've found out that the initial password is 'changeit' and I've changed it to my own,

GlassFish: How to set Access-Control-Allow-Origin header

被刻印的时光 ゝ 提交于 2019-12-17 16:11:58
问题 I am using the latest version of GlassFish. I want to set the Access-Control-Allow-Origin header in response so that my API which is hosted on GlassFish can be called from any domain. But I am not able to find out where to set it. 回答1: In my case, the API requests are exclusively handled by Jersey, therefore I can set response headers in a ContainerResponseFilter : package my.app; import com.sun.jersey.spi.container.ContainerRequest; import com.sun.jersey.spi.container.ContainerResponse;

“Web Services” Node is absent in GlassFish Server Open Source Edition 3.0.1

情到浓时终转凉″ 提交于 2019-12-14 02:12:05
问题 I can't see the "Web Services" Node (Menu Item in the Tree-like menu that GF admin console has on its left side) in glassfish's admin console. Is there a way to enable it in glassfish? Should I download any upgrades for glassfish to enable it? 回答1: Short answers: No and no. Longer answer: There have been a fair number of changes in the Admin Console between GlassFish Server 2.x and 3.x. There is no explicit node in the tree in 3.x. Most of the data that was available in the tree has been

Grizzly / Glassfish - Cant establish websockets handshake

安稳与你 提交于 2019-12-14 02:09:18
问题 I'm trying to get WebSockets working on top of Grizzly / Glassfish. I've cloned the sample WebSockets chat application, built it and deployed it to Glassfish 3.1.2. However, I cannot get WebSockets to connect. The WebSockets handshake is failing because I'm getting a 405 (Method Not Allowed) response. This makes sense because of what is in the Servlet: public class WebSocketsServlet extends HttpServlet { private final ChatApplication app = new ChatApplication(); @Override public void init