Questions tagged [glassfish-4.1.1]

1

votes
0

answer
276

Views

Upgrading from Glassfish 2.1.1 to Glassfish 4.1

Can someone please enlighten me. I'm trying to upgrade my Glassfish 2.1.1 to Glassfish 4.1. I've decided to do a side by side install as indicated here: https://docs.oracle.com/cd/E26576_01/doc.312/e24942/upgrading-legacy-installation.htm#GSUPG00039 Question are: (1) What is 'as-install'? There's n...
Cyberpau
1

votes
0

answer
492

Views

How to change jdbc-connection-pool properties dynamically at glassfish-resources.xml?

Basically I have two enviroments which run my Application, I use the preconfigured Docker enviroment on AWS to deploy my applications. So, it gets the connection properties by the glassfish-resources.xml, with Glassfish 4.1.1, everytime I need to deploy a new version to any enviroment It is needed t...
Allan SM
1

votes
0

answer
336

Views

Glassfish 4.1 configure http/https proxy

To access external endpoints I have to go through proxy server. I have been trying to configure the http and https proxy in my glassfish 4.1 server but have had no success. I've tried adding the following sets of Java Options in my domain.xml - manually and through UI. But am still getting 'Network...
SutuwaShell
1

votes
0

answer
486

Views

GlassFish Server 4.1.1 start failed, what i can do?

GlassFish Server 4.1.1 start failed Please check server admin user name and password properties. Also please check the server log file for other possible causes.
rajitha
1

votes
1

answer
286

Views

AWS Elastic Beanstalk: Nginx reverse proxy is not getting deployed on JAVA env (glassfish)

I tried to follow this doc ( https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-se-nginx.html ) but couldn't build the custom nginx conf. I am able to deploy an application and environment and it works. After testing a working environment I wanted to modify some nginx configurations and I f...
Mayank
1

votes
1

answer
69

Views

sql server glassfish eclipselink jpa issue

I am creating a simple online form using netbeans 8.2, sql server 2014, glassfish 4.1.1 (embedded) and sqljdbc4-2.0.jar. So, once I create the controller.. package controller; import entity.KkkkkkkFacade; import javax.ejb.EJB; import javax.inject.Named; import javax.enterprise.context.RequestScoped;...
Samir
1

votes
1

answer
111

Views

REST Application deployment issues on Tomcat 8.5.33

I had developed a REST based web application in Netbeans-8.2 using Glassfish-4.1.1. Now development is finished and I want to deploy it on a server for testing purpose. I am using Tomcat-8.5.33 for deployment using WAR file. After I move WAR file to webapps folder, when i try to access the applicat...
Dashrath Chauhan
1

votes
0

answer
8

Views

Glassfish 4.1 cluster stop working suddenly

I have a production environment with a cluster of glassfish (version 4.1) and 2 nodes. Once every 3 or 4 days the web portal is unavailable, without answers. When we try to access the URL, we get no response. It's as if the cluster can no longer control the nodes. An important fact: When this proble...
1

votes
1

answer
1.7k

Views

java.lang.RuntimeException: java.lang.IllegalStateException: IIOP1004: Key alias s1as not found in keystore

I am trying to add a self-signed certificate in GlassFish Server 4.1 for the development purpose only. The server certificate is generated using the following command. 'C:\Program Files\Java\jdk1.8.0_25\bin\keytool' -genkey -alias server-alias -keyalg RSA -keypass changeit -storepass changeit -keyst...
Tiny
1

votes
1

answer
578

Views

JPA ElementCollection Map<Integer, Entity>

i need to assign the value of the map to my entity but jpa tries to save the hole object as an byte array. @Entity public class ImageSet { ... @ElementCollection private Map images = new LinkedHashMap(); } @Entity public class Image { ... @Id @GeneratedValue(strategy = GenerationType.AUTO) private...
perotom
1

votes
1

answer
73

Views

What difference step is happening while importing WSDL via browser Vs SOAPUI

I have a well reported problem with a simple WS deployed in Glassfish 4.1 , where I get the WSDL in browser but cant import it in SOAP UI or Eclipse(Kepler) . IWAB0135E An unexpected error has occurred. WSDLException WSDLException: faultCode=OTHER_ERROR: this My question is : What extra thing is hap...
1

votes
1

answer
2.3k

Views

Glassfish 4 certificate based client authentication

For couple of days I'm trying to set up my development environment for certificate-based client authentication and it just don't want to work. I'm using the Glassfish 4 documentation (security guide) and creating according to it self signed client certificate for test purposes but I'm not sure what...
Svetoslav
1

votes
1

answer
619

Views

Glassfish 4.1.1 - Response code 400 on a DELETE request with a body

According to https://java.net/jira/browse/GLASSFISH-21238 the fix in present in Glassfish 4.1.1. It is applied by setting http listener property: asadmin set server-config.network-config.protocols.protocol.http-listener-1.http.allow-payload-for-undefined-http-methods=true I have set this property b...
chrome
1

votes
3

answer
1k

Views

hibernate-entitymanager NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String;I)V

I'm deploying an EAR application built with Maven which has the following dependency in one of the modules: org.hibernate hibernate-entitymanager 5.1.0.Final When I try to deploy the application in a Glassfish Server 4.1 I get the following error: Fatal: java.lang.NoSuchMethodError: org.jboss.logg...
Alvaro Pedraza
1

votes
2

answer
945

Views

how to create a jta-data-source file?

I'm using Glassfish 4.1. Here is how I want my persistence.xml file to be like: org.eclipse.persistence.jpa.PersistenceProvider PostgreDS false I have no idea how or where to create the 'PostgreDS' file.
Eduardo
1

votes
1

answer
1k

Views

PrimeFaces oncomplete backing method called on page load

PrimeFaces 5.0, JSF 2.2, Glassfish 4.1.1, I'm assuming that something in my setup isn't configured correctly but I'm not sure what to look at... So I'm using managedbeans to back JSF pages. Within the PrimeFace elements on the page if I use an oncomplete property the method it refers to gets called...
Trig
0

votes
0

answer
4

Views

Is it possible to run SpringBoot 2.2 in glassfish 4.1?

I'm doing a project in SpringBoot 2.0 and I can not find a way to deploy it in glassfish4.1. Any advice or tutorial?
1

votes
1

answer
1.8k

Views

Setting context-path J2EE compiled by netbeans

i developed an application for university, but for some reasons seems to be impossible for me to set the context-root of it. This is what i tried to do: Changing context-root from glassfish-web.xml but it's not working. The server recognize ever /web/ path (the name of web module). This is my XML we...
Neo87
1

votes
1

answer
193

Views

Failed to send an email after migration from Glassfish 2.1 to Glassfish 4.1

I did a migration of my Client WebApp. Previously, it was running on Glassfish 2.1 and JDK 1.6. Now, it's on Glassfish 4.1 and jdk 1.8. When I try to send an email from my WebApp, the same '.war' packaged in JDK 1.6 (Project facets 1.6) works perfectly on Glassfish 2.1 and doesn't work on Glassfish...
Hackilltour
1

votes
0

answer
26

Views

java.lang.NullPointerException at com.sun.enterprise.deployment.util.ComponentValidator.accept() while deploying

I am developing a Java EE application and is facing some error which I'm uncertain whether it's my code problem. I created a an entity class called Staff and a stateless session bean for the entity class (Facade) to access it from the WAR application. However, initially I have one Managed Bean with...
Kar Keng Chan
1

votes
3

answer
1.4k

Views

Starting GlassFish 4 Error

I get that error when I attempt to start the Glassfish server 4 at localhost[domain1] Unable to start server due to following issues: Key value shall not be null. Here's the ScreenShot of it. I could not find a solution. Thank you.
Picture
1

votes
2

answer
250

Views

Hot code replace failed - VM may be inconsistence

Hot Code Replace Failed, this message appeared while working in STS. Does JVM doesn't support hot code replace.
Vivaswan
1

votes
1

answer
359

Views

Update Glassfish 4 on Centos

I need to update Glassfish 4 which is running on Centos (CentOS release 6.7). I figured out that it must be done with the tool pkg. I have installed it but now I am getting the following error when I try to run pkg list -u Traceback (most recent call last): File '/usr/glassfish4/pkg/bin/client.py',...
Phillip
1

votes
1

answer
41

Views

Is the class extending ClientBehaviorBase can be considered as an injection target?

The bean is defined to be as simple as follows: @Named @RequestScoped public class ConfirmBean { private String confirmMsg; public ConfirmBean(){ confirmMsg = 'Are you sure you want to delete this file ?'; } // getters & setters } And the class inheriting the ClientBehaviorBase @Faces...
Shirgill Farhan
1

votes
1

answer
587

Views

Glassfish create-service for [domain 2]

I'm trying to create windows service for glassfish and I've had no problems creating one for the default domain, but when it comes to a domain I created my self, I seem to struggle. the command I'm using is: asadmin>create-service --domaindir C:\Program Files\glassfish-4.1.1\glassfish\domains\testdo...
1

votes
2

answer
587

Views

can't delete glassfish directory in docker container

Because of a known glassfish bug I tried to remove the glassfish/domains/domain1/generated folder. We are running it in a docker container and it works well but somehow I can't delete these files. rm -rf or rm -r generated/* works perfectly on my local installation. Even when I copy a new glassfish4...
Adrian Krebs
3

votes
0

answer
216

Views

How to config JNDI for Camel + ActiveMQ + Glassfish

How to config JNDI for Camel + ActiveMQ + Glassfish That config works! But I want to use JNDI because I don't make reference to url, user, password at the deployed xml file. I follow the tutorial Integrating Apache ActiveMQ with Glassfish and it is ok. But when I replace
Alisson Gomes
2

votes
1

answer
544

Views

GlassFish JDBC Realm Troubleshoot jdbcrealm.grouperror

What do i want to achieve: Only users with the role 'head' should access to any path that matches the pattern 'mario/*' What is my scenario: There two roles: 'head' and 'default'. The role 'head' is mapped to the group name 'HEADS'. The role 'default' is mapped to the group name 'USERS'. Every logg...
m_junior
6

votes
6

answer
16.1k

Views

NoSuchMethodError: org.jboss.logging.Logger.debugf

I'm trying to make a stack Spring + Spring Data + Log4J2 work. Unfortunately, when deploying the artefact on My Glassfish 4.1 Server, the following error occurs : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class com.canal....
Florian Tavares
4

votes
4

answer
9.4k

Views

Glassfish admin console's java.lang.RuntimeException

I have tried to create jdbc connection pool on my glassfish with the following properties(as seen on the image below). It connected succesfully makes me think it works right. However after I restarted the glassfish and tried to ping the pool, a RuntimeException appeared on my screen on a white scree...
name me
3

votes
2

answer
2.2k

Views

java.lang.ClassNotFoundException: org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor when deploying Java EE 7 app on GlassFish 4.1

Recently, when deploying my application to the GlassFish 4.1 test server, I got the following exception: Exception while loading the app : java.lang.ClassNotFoundException: org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor Local deployment on the same application server version...
cghislai
2

votes
2

answer
4.1k

Views

How can I make a payara netbeans integration

How can I make a payara netbeans integration, it is posible? How I can integrate Payara with netbeans, what can you tell me about the integration, there is a plugin.
meyquel
4

votes
1

answer
200

Views

Access glassfish security realm from within the application

I am using a glassfish 4.1 application server for a web application. The web application authentication/authorization is done by a glassfish ldap realm. So I do not have to implement and configure the ldap connection within my application but within the glassfish container. That's good! Now I need t...
Wintermute
2

votes
2

answer
4.3k

Views

Publishing to GlassFish 4 at localhost [domain 1] has encountered a …, Cannot deploy abconlinetest

I have no idea how step over this problem: **After amending some code where Glasfish provide an reasonable error message i got this useless message: 'Publishing to GlassFish 4 at localhost [domain 1] has encountered a problem, Cannot deploy abconlinetest' without any other expanation. Even after rem...
Franz H
2

votes
3

answer
8.4k

Views

Glassfish Server is not connected. Deploy is not available intelliJ

I don't know why, but my glassfish server wont connect anymore. Last night i opened up Netbeans, and pointed it to same gf (homebrew), to look at example EE apps. I didnt even endup running them, just looked at code. This was whilst i was working on a project in intelliJ where everything was workin...
jsky
7

votes
1

answer
577

Views

Pages being processed are merely left blank half way through on errors/exceptions instead of forwarding to the error page specified in web.xml

In web.xml, I have the following configurations for a global error page. 401 /WEB-INF/error_pages/GeneralError.xhtml 403 /WEB-INF/error_pages/GeneralError.xhtml 404 /WEB-INF/error_pages/GeneralError.xhtml 500 /WEB-INF/error_pages/GeneralError.xhtml 503 /WEB-INF/error_pages/GeneralError.xhtml When an...
Tiny
1

votes
2

answer
2.4k

Views

Cannot add server glassfish 4.1.2 in netbeans 8.1

When trying to add Glassfish 4.1.2 server in Netbeans 8.1 IDE, I'm getting the following error message: 'Not a valid GlassFish Server installation' JDK 1.7.0_67 on Windows XP used.
madvargas
2

votes
1

answer
572

Views

Monitoring Code/Method-level Statistics using AppDynamics

I am now working on Performance Testing of a Java Application that runs on GlassFish Server 4.1. After going through some statistics that I got from AppDynamics tool, I find that there is no possibility for me to drill down to code/method level issues. For example, I can see the time taken by each m...
Nitya
3

votes
1

answer
2.6k

Views

How do I update glassfish 4.1.1 inside netbeans 8.2

I am working on a tutorial using glassfish inside netbeans https://netbeans.org/kb/docs/javaee/ecommerce/setup.html . I reached this point in the tutorial (Don't mind the Pool name, I changed it to fit my own) But when I click next I get this error I read on the internet that some people say this...
cop77
1

votes
2

answer
1.8k

Views

Java EE application fails to compile due to package that do not exist when using IntelliJ IDEA

I am beginner in Java and I have a problem when using: import javax.enterprise.context.RequestScoped; import javax.inject.Named; Compiler writes this error: Error:(3, 32) java: package javax.enterprise.context does not exist Error:(4, 20) java: package javax.inject does not exist Error:(6, 2) java:...
Lukas Navratil

View additional questions