Questions tagged [glassfish-4]

Fourth version of the popular Java EE open source application server and the reference implementation of the Java EE 7.

Java EE 7 brings the new versions of the many Java enterprise and Web technologies, such as EJB 3.2, JMS 2.0, JPA 2.1, Servlet 3.1 etc. GlassFish is an open source server that represents a reference implementation of Java EE standard. In its fourth version, GlassFish offers the complete Java EE 7 (JSR-342) platform. It is a first certified application server that fully supports Java EE 7.

This tag is for questions specific to version 4. For generall questions to GlassFish see:

908 questions
0
votes
1 answer

ClassCastException: Lucene40PostingsFormat on Hibernate Search

I am trying using Hibernate-Search for add full text search capabilities but when i try deploy the ear proyect on glashfish application server i get the Lucene40PostingsFormat classCastException. here it is the complete server log: Información: …
0
votes
1 answer

Glassfish installation issue on Mac

I was trying to install it through Eclipse EE IDE. It finished downloading, but wouldn't install. I have seen a bunch of questions about this on SE, but it's either a different OS, or a different problem, so couldn't find any solution yet.
Sartaj
  • 29
  • 1
0
votes
1 answer

setup tls connection between glassfish app server and mysql instance in amazon

I have been trying to figure out how to setup secure TLS connection between my app server(Glassfish) on Amazon EC2 and the MySQL instance on Amazon RDS. Docs online do not indicate in detail or are misleading. Can anyone please guide me in the right…
0
votes
1 answer

Java ee 7 project can not be deployed under Glassfish 4.1.1 if glassfish-web.xml includes alternatedocroot property

I am currently developing an application with Glassfish 4.1.1, JSF 2.2.12. I let the customer to upload his profile photo what I save it. The project was working perfectly but I saved the photos in the deployment directory which I lost every time I…
Roland
  • 327
  • 7
  • 19
0
votes
2 answers

Glassfish and Tomcat error

I am using Eclipse Java EE IDE (dynamic web project). I encountered a problem with my server that I downloaded to the eclipse. The server I am using is Tomcat v8.0 and I tried glassfish4. When I run the servers to test my work, it shows these…
Peyker
  • 71
  • 1
  • 1
  • 8
0
votes
2 answers

Resolve missing server in netbeans

I use netbeans 8.1 and glassfish 4.0.When I click persistence.xml-design tab,a warning appears like The project does not have the target server properly.Java persistence features are server-dependent ... So I don't use JPQL on persistence.xml Any…
aysegulP
  • 443
  • 3
  • 6
  • 18
0
votes
1 answer

Trouble suppressing log output from a jar

I am building a JSF application that utilizes the expect4j library and am having a really hard time suppressing the output in the glassfish server log. I tried creating a logging.properties file in my src/main/resources directory based on the…
klog
  • 486
  • 3
  • 10
0
votes
0 answers

Glassfish dont see my rest application

I have RestApplication class: @ApplicationPath("/orcr") public class RestApplication extends Application { @Override public Map getProperties() { Map properties = new HashMap<>(); …
VitBuk
  • 19
  • 2
0
votes
0 answers

current transaction is aborted, commands ignored until end of transaction block glassfish 4 Hibernate 5 and Java 8

I have the following situation @Override public Boolean getCdrUtilizouHoje(Integer duration, String msisdnOriginator, int dialstatus, Timestamp dataAtual) { //TODO ver o retorno cdrStat SimpleDateFormat formato = new…
0
votes
2 answers

Cannot load Bootstrap from local folder using Jersey 2 on Glassfish 4

I'm trying to add Bootstrap to an existing Jersey 2/JSP sample project, using this tutorial as a guide. However, in Chrome console I keep getting 404 errors for Bootstrap's CSS, and the styles won't be loaded. I tried adding a property in my…
jmm
  • 1,044
  • 2
  • 12
  • 38
0
votes
1 answer

Create directory for imgs

I try to install glashfish4 to Windows. The instructions mentions to crete a directory for images. I open cmd and I do to the glashfish path with cd and I type: mkdir -p /var/webapp/images and the error I receive: The syntax of the command is…
Emklj
  • 39
  • 10
0
votes
0 answers

Deployment error on my netbeans console when run web project on j2ee platform

Can anyone help me please because I am blocking on this point. My netbeans console shows : ant -f C:\\Users\\Amirou\\NetBeansProjects\\pro_jpa -Dnb.internal.action.name=run -Ddirectory.deployment.supported=true -DforceRedeploy=false…
0
votes
1 answer

Load JDBC resource

I trying to configure Glassfish 5 with this datasource JNDI name: jdbc/DefaultD Exception attempting to inject Res-Ref-Env-Property: jdbc/DefaultDB@javax.sql.DataSource@ resolved as: jndi: java:comp/DefaultDataSource@res principal: null@mail: null…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
1 answer

What is a good workflow for java with EJB, JSP, Servlet, and shared project, jQuery in eclipse/glassfish?

I am attempting to learn java EE by developing an app from scratch. What I have now is JSPs, EJBs, Servlets, jQuery script. I feel my progress is very slow right now. I am afraid to consider JRebel-like tools at the moment. Is there a step by step…
John Doe
  • 1,364
  • 1
  • 12
  • 19
0
votes
0 answers

Rest + Remote in EJB Bean, doesn't work

I am trying to build an EJB calculator with a remote interface and REST interface (Jersey). When ICalcRemote is not implemented, the REST interface works fine. When I implement ICalcRemote, it doesn't work. Can you look at my code? I am running it…
Spayk
  • 1