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

Glassfish 4.0 timer service create timer not working

I use glassfish 4.0 to test an ear with ejb using timer service. When glassfish loads it shows that the timer service is loaded and everything looks fine. I call TimerService.createTimer and no exception is thrown. However, when i try to see how…
user2770375
0
votes
0 answers

Error starting Struts 2 Filter

I have a weird problem, I can build and deploy my web application made with Struts 2, but when I do login I get a 404 Error. My Web application is deployed and the action after the login exists, the only problem I have found in the log is the…
Rafael Carrillo
  • 2,772
  • 9
  • 43
  • 64
0
votes
1 answer

How do I hit my web app over the Internet?

1) Port 80 is open and forwarded to local machine (I can verify it with a port checking tool). 2) Glassfish is running and the web app is deployed (I can see it 192.168.1.3:8080/FamilyTree and it is listed in the admin console) 3) How do I get to…
user2947084
  • 97
  • 1
  • 6
0
votes
1 answer

how to use multiple datasources in java application

I have 2 schemes in the database, and I want to create an application that uses data from the other schema. My question , can I use many database schemes' connection in one application? I know that each 'ear' file must have one connection. so how…
0
votes
2 answers

Glassfish does not start up

Today i reinstalled my Glassfish Server and added it to my eclipse java web project. When i try to start it it takes extremly much time. after 30 Minutes of loading he arrived 69% of his starting progress. Now he does not get further. No Errors are…
user1882812
  • 936
  • 5
  • 18
  • 41
0
votes
1 answer

showning images that are not stocked in web content - Glassfish 4

Hi I'm working on Glassfish 4, Java EE7. I want to show my images that I had saved in a folder named "Uploaded" like this when I was working on tomcat7 I was changing the conf/server.xml by…
0
votes
1 answer

Can I use Glassfish 4 with Jackson 2.x?

I'm developing an app for Glassfish 4.0, which uses Jersey 2. I want to use Jackson as the JSON provider for Jersey. I have updated the Jersey version in Glassfish, which helps with the CDI issues. Ideally, I would like to use the newer (fasterxml)…
Rick
  • 362
  • 5
  • 16
0
votes
1 answer

Simple REST Jersey example in Java not working

I wrote a very simple example using Jersey. I downloaded the latest jar files from the jersey website into lib folder in WEB-INF. My class and web.xml are below. When I provide URL localhost:8080/SimpleJersey/rest/test I get 404 error (not…
user1552294
  • 125
  • 1
  • 10
0
votes
1 answer

Creating a REST Service with Glassfish 4 outside of a WAR

I have a rest service implemented as follows @Stateless @Path("/Person") @Produces(MediaType.APPLICATION_XML) public class RestService { @PersistenceContext(unitName = "mysqlPU") EntityManager em; @GET @Path("{id}") public…
rubixibuc
  • 7,111
  • 18
  • 59
  • 98
0
votes
1 answer

Profiler engine warning throws by Netbeans Memory Profiler

I am trying to use Netbeans profiler, although I can run Profiler monitor but when I run Profiler Memory it shows the following errors in console under GlasshFish4 window. *** Profiler engine warning: class…
J888
  • 1,944
  • 8
  • 42
  • 76
0
votes
4 answers

"GlassFish Server, deploy, null, false" error

I'm having problems with Glassfish 4.0 + Netbeans 7.4... whenever i try to run my project i get this erros: ant -f D:\\Projetos\\NetBeans\\Sullimar -Dbrowser.context=D:\\Projetos\\NetBeans\\Sullimar\\web\\index.html -DforceRedeploy=false…
0
votes
2 answers

How to give access to localhost:8080 on network?

How to make my computer as a server so I run the application on IDE and be accessible by other computers on same network via their browsers?
J888
  • 1,944
  • 8
  • 42
  • 76
0
votes
1 answer

Shutting down server due to startup exception Glassfish 4

I faced a problem after I install Windows 8.1, And when I try to start-up Glassfish 4.0 using Netbeans 7.4 I got this error: And the erro in the Glassfish log is: [2013-11-27T07:58:32.229-0800] [glassfish 4.0] [SEVERE] [NCLS-CORE-00019]…
Husam
  • 2,069
  • 3
  • 19
  • 29
0
votes
2 answers

Can't get Oracle Connection in Glassfish

I am trying to get a JDBC connection happening in my Glassfish 4, but it is complaining that the URL is incorrect when I ping it. So far I have copied my ojdbc6.jar and ojdbc7.jar files into the Glassfish 4 > domain1 > lib directory. My General…
Oliver Watkins
  • 12,575
  • 33
  • 119
  • 225
0
votes
1 answer

Created table, but where is it?

I set up and connected a derby database called timezonedb Then I used the SQL scrapbook to create the table Users. As you can see, the table was successfully created, added to, and queried via the scrapbook. The problem is, it doesn't seem to be…
Tajha
  • 399
  • 1
  • 5
  • 15