Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7776469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:53:32+00:00 2026-06-01T17:53:32+00:00

I have a JSF project working with JPA, I do this : retrive some

  • 0

I have a JSF project working with JPA, I do this : retrive some data from mysql database then plot the data in a chart.

Locally works pretty fine, as you can see here:
enter image description here

So I deploy the project in my GlassFish 3 Open Source, which is running in a EC2 instance, then I try to make the same operation again but it seems the ManagedBean do not returns to the page correctly:
enter image description here

This is my ManageBean :

@ManagedBean(name="reportc")
@SessionScoped
public class ReportControl implements Serializable {
    private static final long serialVersionUID = 3269125738504434502L;

    @EJB LogEAO logEAO;

    private int quantity;

    @NotNull(message="informe um intervalo")
    private String time;

    @NotNull(message="informe um ponto")
    private String point;

    private Map<String, Object> data = new HashMap<String, Object>();

    @PostConstruct
    public void init(){
        quantity = 1;
    }

    public String getDataAsJson() {
        return new Gson().toJson(data);
    }

    public String generateReport(){
        this.setTitles();
        this.getValues(getLog());

        return "/showroom/report.xhtml?faces-redirect=true";
    }
    .. methods and get's and set's

I already look in into my server.log to see if there’s something wron but it seems everything is alright.

[#|2012-03-31T14:30:06.594+0000|WARNING|glassfish3.1.1|javax.enterprise.resource.webcontainer.jsf.application|_ThreadID=25;_ThreadName=Thread-2;|JSF1064: Unable to find or serve resource, image/structure/pic-1.gif.|#]

[#|2012-03-31T14:30:15.558+0000|FINE|glassfish3.1.1|org.eclipse.persistence.session.file:/home/ec2-user/usr/local/glassfish3/glassfish3/glassfish/domains/domain1/applications/BrainSet/WEB-INF/classes/_BrainSet.sql|_ThreadID=24;_ThreadName=Thread-2;ClassName=null;MethodName=null;|SELECT ID, TIME, VALUE, id_point FROM log WHERE (((id_point = ?) AND (TIME >= ?)) AND (TIME <= ?))
        bind => [3 parameters bound]|#]

[#|2012-03-31T14:30:15.585+0000|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=24;_ThreadName=Thread-2;|EXECUTION TIME:0:0|#]

[#|2012-03-31T14:30:15.585+0000|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=24;_ThreadName=Thread-2;|LOGS SIZE : 0|#]

[#|2012-03-31T14:30:16.690+0000|WARNING|glassfish3.1.1|javax.enterprise.resource.webcontainer.jsf.application|_ThreadID=24;_ThreadName=Thread-2;|JSF1064: Unable to find or serve resource, image/structure/pic-1.gif.|#]

[#|2012-03-31T14:35:53.578+0000|FINE|glassfish3.1.1|org.eclipse.persistence.session.file:/home/ec2-user/usr/local/glassfish3/glassfish3/glassfish/domains/domain1/applications/BrainSet/WEB-INF/classes/_BrainSet.sql|_ThreadID=28;_ThreadName=Thread-2;ClassName=null;MethodName=null;|SELECT ID, TIME, VALUE, id_point FROM log WHERE (((id_point = ?) AND (TIME >= ?)) AND (TIME <= ?))
        bind => [3 parameters bound]|#]

[#|2012-03-31T14:35:53.605+0000|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=28;_ThreadName=Thread-2;|EXECUTION TIME:0:0|#]

[#|2012-03-31T14:35:53.605+0000|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=28;_ThreadName=Thread-2;|LOGS SIZE : 0|#]

I really don’t know why this is happening, besides is my first time trying to deploy a project which use JPA and JSF together.
What could be doing this ?

EDIT:
Just one more thing, in local mode when I click to generate the report it takes some seconds to go to the database, make the maths and return to my page, but when it’s in production mode when I click to generate the report it just refresh the page, why is that happening ?
I really need to know why … help me out guys, please.

EDIT 2:

You guys can see it online here:
http://50.19.242.172:8080/BrainSet/showroom/report.xhtml

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:53:33+00:00Added an answer on June 1, 2026 at 5:53 pm

    The solution was :

    I had to give permissions to some user in MySQL, enable the remote connection in MySQL, put JDBC driver in glassfish_installation\glassfish\modules\ and restart it, initialize the logEAO and put the annotation @Table(name="table_name") because it depends of each file system in operationals system as can be seen here:

    JPA: MySQL says table don't exist, but it exist actually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're working on our first JSF project, and we have some problems. We are
I am working on project in JSF, using Tomcat 7. The application will have
I have JSF code like: <h:inputText id=from value=#{fromToMBean.fromName}/> I would like to get this
I've been working on a Java EE 6 project (EJB 3.1, JSF 2, JPA
I'm working on a jsf project, and I have several xhtml pages which use
For my current project I'm working with JSF, Seam and Hibernate and I have
If I want to have a project with both EJB/JPA sourcecode and JSF in
I have an existing JSF 2.0 project working on a Tomcat 7.0.4 server. I
I'm working on a JSF project.Our development based on MySql 5.1, JBoss 4.22GA and
I am working on a project where we have many JSF pages - using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.