glassfish

GlassFish 5.0 exception and port 4848 not responding

微笑、不失礼 提交于 2019-12-19 08:07:49
问题 Yesterday i downloaded GlassFish 5.0 and JDK9. When I'm trying to run server with asadmin start-domain GlassFish send to me exception When I try to use "asadmin start-domainAfter" I got respond: "Remote server does not listen request on [localhost 4848]. Is the serwer up?" Any can help me with this? I looked for solution at google, I tried kill process using port 4848, change port 4848 in domain.xml on another one, nothing helps. It's my firts time with glassfish I don't know what to do.

Class not found when using JAX-RS with Eclipse and Glassfish

拟墨画扇 提交于 2019-12-19 07:48:29
问题 I am using Eclipse Luna (versions 4.4.2) and Glassfish 4 to build a REST web-app using JAX-RS. The following piece of code, which is just a very simple post to the REST api that was previously working just fine, has started throw a very strange error: @POST public Response addToWatchlist(WatchlistEntry watchlistentry) { return Response.ok(watchlist_service.addToWatchlist(watchlistentry).toString()).build(); } The error is below: Warning: StandardWrapperValve[Jersey Web Application]: Servlet

Upgrading Jackson in GlassFish 4.1

十年热恋 提交于 2019-12-19 06:19:09
问题 I am using GlassFish 4.1, which includes Jackson 2.3.2. I would like to upgrade to the newest version of Jackson (currently 2.4.4). Is the procedure for upgrading Jackson in GlassFish 4.1 as simple as: a) stopping GlassFish b) deleting the osgi-cache c) replacing the Jackson 2.3.2 jars in the glassfish/modules directory with newer versions d) starting GlassFish Thanks. 回答1: Please @see https://java.net/jira/browse/GLASSFISH-21141 The procedure I followed was asadmin stop-domain delete felix

The specified directory is not a valid GlassFish installation

我怕爱的太早我们不能终老 提交于 2019-12-19 05:23:52
问题 I'm trying to install GlassFish 4 with Eclipse on Windows 7 64bit. Everything goes fine, but when I try to set server root here's what happens (dir exists): 回答1: The Glassfish installation folder contains a folder which is also named glassfish. This is the folder you have to put in the configuration field. Change the path to: c:/Glassfish/glassfish 来源: https://stackoverflow.com/questions/27215552/the-specified-directory-is-not-a-valid-glassfish-installation

Memory management on Glassfish

拥有回忆 提交于 2019-12-19 04:57:30
问题 I have several background tasks running on my Glassfish server implemented by @TimerService instances. The goal of these services is to extract data from files and insert that data into the database. I tried initially to do this in JPA but the system stalled far to easily, I have now converted the process to JDBC which is far more responsive. However there are still enormous memory leaks somewhere along the way which I cannot pinpoint. Each file is extracted in a method which manages its own

Tomcat 6 conversion to Glassfish v3: servlet-api, el-api jars

吃可爱长大的小学妹 提交于 2019-12-19 04:50:28
问题 I used ant when building my web app from eclipse to deploy to Tomcat 6 and referred to servlet-api.jar and el-api.jar within the Tomcat 6 release tree rather than pulling them in to my deployed library folder. I am trying to deploy to Glassfish v3. I've pulled the jars from the www.java2s.com website. Was this the right place to get them? Did I need to do it at all? I searched within Glassfish and the jars weren't there If I didn't need to do it at all, is there another course of action to

GlassFish v3 - portability of settings

拈花ヽ惹草 提交于 2019-12-18 21:51:26
问题 Is there any way to simply copy the GlassFish v3.0.1 server settings (ie connection pools, resources, realms... ) to another GlassFish, so it is not needed to set them manually? This way it would be a lot easier to set up the same development environment. Environment: NetBeans 6.9 + GlassFish 3.0.1 Thanks in advance, Daniel 回答1: You should just be able to drop your glassfish\domains\<name_of_domain>\config\domain.xml file into your target domain and restart glassfish. 来源: https:/

Automatic JDBC Realm configuration

≡放荡痞女 提交于 2019-12-18 18:09:12
问题 I want to know if it's possible to create JDBC Realm configuration in Glassfish 3.1 without admin console, like creation of a Data Source with the glassfish-resources.xml . When developers download my GIT repository they don't like to configure Glassfish, it's configured in deployment time. Best regards Mounir 回答1: I'd create a shell script or batch file which runs the required asadmin commands. Here you can find a complete example: Creating JDBC Objects Using asadmin (Btw, DTD of GlassFish

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/PersistenceException

烂漫一生 提交于 2019-12-18 17:32:58
问题 I'm new to JavaEE. I created enterprise application project in NETBEANS 7.2.1 with glassfish server 3.1. When I try to clean and build I get following error An annotation processor threw an uncaught exception. Consult the following stack trace for details. java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/PersistenceException at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass

How to override j_security_check in glassfish?

可紊 提交于 2019-12-18 16:50:03
问题 I'm currently using FORM based authentication in glassfish v2.1 to log users in and it works fine. I want to switch to ProgrammaticLogin and I want to be able to get the initially requested URL (i.e. before redirecting to login page) and use it in my programmatic login code so that the user is redirected back to the requested page after authentication. I've seen the source code for j_security_check - in my case that's FormAuthenticator (catalina codebase) and it saves the initial request in a