glassfish

GlassFish 5 and MySQL Connector

为君一笑 提交于 2019-12-23 02:57:10
问题 I use GlassFish 5 with mysql-connector-java-8.0.13.jar and CLASSPATH values: C:\Program Files\glassfish5\glassfish\lib C:\Program Files\glassfish5\glassfish\domains\domain1\lib C:\Program Files\glassfish5\glassfish\domains\domain1\lib\ext After several restarts of both the server and the laptop it still gives this error: Ping Connection Pool failed for MySQL_sakila. Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource Please check the server.log for

how can I invoke a webservice from another webservice

醉酒当歌 提交于 2019-12-23 01:31:34
问题 I have two webservices A and B. A needs to invoke one of the webMethods in B. How can I achieve this? I am using maven's wsimport plugin to build A. This is to generate the necessary stubs for B and include them as part of the Webservice A. However, when I try to Invoke the webmethod o f B, I get an Exception. Can anyone please tell me what is going on? Below Is the code and the exception trace: Code: BBeanService bbs = new BBeanService(); BBean bb = bbs.getBBeanPort(); bb.invokeWebService();

Resteasy deploy fails randomly on glassfish 4.1

廉价感情. 提交于 2019-12-23 01:19:20
问题 I have a problem with my REST-Application using Resteasy. When I deploy the application with this dependencies <dependency> <groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-servlet-initializer</artifactId> <version>3.0.11.Final</version> </dependency> as described here in Chapter 3.5 sometimes the server deploys the application correctly and everything works fine. But sometimes I get Error invoking ServletContainerInitializer org.jboss.resteasy.plugins.servlet

Glassfish in a production environment?

谁都会走 提交于 2019-12-22 11:04:59
问题 Do you use Glassfish 2 or v3 in a production environment? Do you find it robust? Have you ever been able to find a complete set of documentation? What do you do when you find that Glassfish ignores J2EE standards, like class and anotation scanning? 回答1: Glassfish is Sun's reference standard for a J2EE app server. V3 supports the new 3.1 standard. However, it is only a preview. It is currently scheduled to be released on Dec 10, 2009. Of course, it can always be dangerous to be a very early

Glassfish vhost to serve only static contents. Disable session how to?

最后都变了- 提交于 2019-12-22 10:45:09
问题 I have a folder in the server, that contains all the images, static files, and more its the storage of my application, I need to serve this files on a http://host:8080/storage/** context. At this moment I mount a symlink on the root of the application on the application statup called "storage", I'm trying to setup a virtualhost in Glassfish Application Server v2.1 to serve only static content, but, a big problem appeared, how to disable the httpsession management? Each request to a JS,CSS or

OpenJPA 2.1.1 enhancement problem on Glassfish 3.1.1

那年仲夏 提交于 2019-12-22 10:16:39
问题 My problem is this exception: Caused by: <openjpa-2.1.1-r422266:1148538 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: " I'm trying to get an very simple java application with jsf and jpa running, but there seems to be a problem with the enhancement of my entities. As far as I know, tries OpenJPA to enhance my

Glassfish AppServer or JBoss AppServer which is better for Production Environment?

房东的猫 提交于 2019-12-22 10:14:06
问题 I would like to know about pros and cons of glassfish server and jboss (glassfish v3 vs jboss 7.0) in using in production environment, i know more people use jboss as the application server, but glassfish has more features and stability over jboss do you agree with me? 回答1: Ask the question on the GlassFish forums and you'll get GlassFish as an answer. Ask the question on the JBoss forums and you'll get JBoss as an answer. Ask here, and you'll likely get both :-) Stability. I can tell you

Glassfish application not working with maven library (gf-client)

梦想的初衷 提交于 2019-12-22 10:09:33
问题 For a school assignment I received a Netbeans project using JNDI and JMS with Glassfish (3 open source edition). All the Glassfish libraries this application is using are referenced by absolute path and all the other libraries (in the "lib" folder) are referenced by relative path. Since my group is working with a version control system the "lib" folder is included in the repository. This works fine because it is a small project. However the Glassfish libraries are problematic as I am a Linux

EJB Glassfish v3.1.2 client passed data to session bean is always null

本小妞迷上赌 提交于 2019-12-22 09:45:31
问题 I am having a problem when calling session bean method passing method parameters from client application, the data reaches the method call is always null or set to default value. while the process of the method works well with the object for example: -we have method to persist an object entity addStudent(Student student); - from the client we create the student object setting student fields like student name and so on, calling the method addStudent(ourStudent); this ourStudent reaches method

How can I get j_username on my index.jsp after successful authentication with j_security_check?

こ雲淡風輕ζ 提交于 2019-12-22 06:59:10
问题 I'm using j_security_check on a login.jsp. The server is GlassFish Server 3. It all works, when the user is authenticated it then opens index.jsp. My problem is I need to get j_username in my index.jsp, but I couldn't find a way of doing it. All solutions I found are in Java and I need something that works with my jsp. Any ideas? Thank you very much in advance! 回答1: The involved request is in JSP EL available by PageContext#getRequest(). The logged-in user is available by HttpServletRequest