A blank page appears after deploying sample-web

4 views
Skip to first unread message

Suhothayan Sriskandarajah

unread,
Aug 19, 2010, 1:48:28 PM8/19/10
to persis...@googlegroups.com
I populated the database with the given .sql file and I too was able to deploy the sample-web successfully with out error.
But when I go to the page http://localhost:8080/persistence4J-sample-web/
I'm getting a blank page.

Why is this, is there any prerequisites I'm missing ?

Suho

Avdhesh Yadav

unread,
Aug 20, 2010, 1:38:14 AM8/20/10
to persis...@googlegroups.com
After deploying and when you go to http://localhost:8080/persistence4J-sample-web/ check the logs is there any error message?.If there is error message please post the error message here.Most probable reason is that the credentials of database not right.before building the sample application change the credentials as per you database installation in persistence.properties of persistence4J-sample-web.

To use the right credentials go to

persistence4J-sample-web/war/
WEB-INF/persistence.properites and search for following lines

persistence.dbms.mysql.username=mysql
persistence.dbms.mysql.password=mysql

Now here you change username and password of you mysql installation.


Please try these steps and tell me if it working.

Suhothayan Sriskandarajah

unread,
Aug 20, 2010, 11:42:52 AM8/20/10
to persis...@googlegroups.com
On 20 August 2010 11:08, Avdhesh Yadav <avdhes...@gmail.com> wrote:
After deploying and when you go to http://localhost:8080/persistence4J-sample-web/ check the logs is there any error message?.If there is error message please post the error message here.Most probable reason is that the credentials of database not right.before building the sample application change the credentials as per you database installation in persistence.properties of persistence4J-sample-web.

To use the right credentials go to

persistence4J-sample-web/war/
WEB-INF/persistence.properites and search for following lines

persistence.dbms.mysql.username=mysql
persistence.dbms.mysql.password=mysql

Now here you change username and password of you mysql installation.


Please try these steps and tell me if it working.
Yes I did all of these, and there was no error in the logs too.
but, when I inspect the lorded HTML(blank page) I found that it is trying to load  sample/sample.nocache.js file which is not there.

How can I over come this issue?

Suho


avdhesh

unread,
Aug 21, 2010, 10:59:41 AM8/21/10
to Persistence4J
Most probable reason is that its not building properly.
can you see following lines while building


[INFO] Compiling module com.avdy.p4j.sample.Sample
[INFO] Validating newly compiled units
[INFO] [WARN] Warnings in 'jar:file:/root/.m2/repository/com/
googlecode/gwtmosaic/gwt-mosaic/0.4.0-rc4/gwt-mosaic-0.4.0-rc4.jar!/
org/gwt/mosaic/ui/client/impl/GlassPanelImpl.java'
[INFO] [WARN] Line 52: Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl'
[INFO] [WARN] Line 60: Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl'
[INFO] Compiling 12 permutations
[INFO] Compiling permutation 0...
[INFO] Process output
[INFO] Compiling permutation 1...
[INFO] Compiling permutation 2...
[INFO] Compiling permutation 3...
[INFO] Compiling permutation 4...
[INFO] Compiling permutation 5...
[INFO] Compiling permutation 6...
[INFO] Compiling permutation 7...
[INFO] Compiling permutation 8...
[INFO] Compiling permutation 9...
[INFO] Compiling permutation 10...
[INFO] Compiling permutation 11...
[INFO] Compile of permutations succeeded

Please post complete build log here

On Aug 20, 8:42 pm, Suhothayan Sriskandarajah <suhotha...@gmail.com>
wrote:
> On 20 August 2010 11:08, Avdhesh Yadav <avdhesh.ya...@gmail.com> wrote:
>
>
>
> > After deploying and when you go to
> >http://localhost:8080/persistence4J-sample-web/check the logs is there
> > any error message?.If there is error message please post the error message
> > here.Most probable reason is that the credentials of database not
> > right.before building the sample application change the credentials as per
> > you database installation in persistence.properties of
> > persistence4J-sample-web.
>
> > To use the right credentials go to
>
> > persistence4J-sample-web/war/
> > WEB-INF/persistence.properites and search for following lines
>
> > persistence.dbms.mysql.username=mysql
> > persistence.dbms.mysql.password=mysql
>
> > Now here you change username and password of you mysql installation.
>
> > Please try these steps and tell me if it working.
>
> Yes I did all of these, and there was no error in the logs too.
> but, when I inspect the lorded HTML(blank page) I found that it is trying to
> load  sample/sample.nocache.js file which is not there.
>
> How can I over come this issue?
>
> Suho
>
>
>
> > On Thu, Aug 19, 2010 at 11:18 PM, Suhothayan Sriskandarajah <
> > suhotha...@gmail.com> wrote:
>
> >> I populated the database with the given .sql file and I too was able to
> >> deploy the sample-web successfully with out error.
> >> But when I go to the pagehttp://localhost:8080/persistence4J-sample-web/

avdhesh

unread,
Aug 21, 2010, 11:02:03 AM8/21/10
to Persistence4J
another option is to run the sample application from the eclipse.To
run from eclipse you have to install the google gwt plugin [1]

[1]. http://code.google.com/eclipse/docs/download.html
> > >http://localhost:8080/persistence4J-sample-web/checkthe logs is there

avdhesh

unread,
Aug 21, 2010, 11:13:32 AM8/21/10
to Persistence4J
I think you are using quite old version of maven.This sample
Application is tested on maven 2.2.1. You should upgrade maven and if
you are using ubuntu 10.04 its in the repository.

On Aug 21, 8:02 pm, avdhesh <avdhesh.ya...@gmail.com> wrote:
> another option is to run the sample application from the eclipse.To
> run from eclipse  you have to install the google gwt plugin [1]
>
> [1].http://code.google.com/eclipse/docs/download.html
> > > >http://localhost:8080/persistence4J-sample-web/checkthelogs is there

Suhothayan Sriskandarajah

unread,
Aug 23, 2010, 1:30:03 AM8/23/10
to persis...@googlegroups.com
On 21 August 2010 20:43, avdhesh <avdhes...@gmail.com> wrote:
I think you are using quite old version of maven.This sample
Application is tested on  maven 2.2.1. You should upgrade maven and if
you are using ubuntu 10.04 its in the repository.

yes, thanks for the tips
it's a maven issue, after changing to maven 2.2.1, I was able to build it and run it properly

suho

 
Reply all
Reply to author
Forward
0 new messages