You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Anil Agnihotri <an...@gmail.com> on 2013/11/12 07:54:14 UTC

Application (build with T5.3.2/T5.4-alpha-24) working on Eclipse Helios but not on Eclipse Juno/Kepler

Hello All,



I have a working application (Tapestry 5.3.2 + Hibernate + MySQL) Dev’ed
with Eclipse Helios (with Maven, Jetty, Hibernate installation). Let alone
my application, if I even try to run “First Tapestry Project” mentioned at
http://tapestry.apache.org/getting-started.html (with Tapestry
5.4-alpha-24, a DB with One Table, with proper Hibernate Tool Configuration
and Code Generation) I am facing the same problem.



The problem is when I try to port this application on Eclipse Juno or
Eclipse Kepler, the browser never loads the application page and the
console output gets infinitely stuck at “INFO: HHH000046: Connection
properties: {user=root, password=****}

“ line and never passes beyond this line.



The Console Output (of Eclipse Juno or Eclipse Kepler): the App is stuck
forever

….

2013-11-12 10:57:54.140:INFO::Started SelectChannelConnector@0.0.0.0:8080

Nov 12, 2013 10:58:20 AM org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {4.1.2.Final}

Nov 12, 2013 10:58:20 AM org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

Nov 12, 2013 10:58:20 AM org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

Nov 12, 2013 10:58:21 AM org.hibernate.cfg.Configuration configure

INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml

Nov 12, 2013 10:58:21 AM org.hibernate.cfg.Configuration
getConfigurationInputStream

INFO: HHH000040: Configuration resource: /hibernate.cfg.xml

Nov 12, 2013 10:58:21 AM org.hibernate.cfg.Configuration doConfigure

INFO: HHH000041: Configured SessionFactory: null

Nov 12, 2013 10:58:21 AM
org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl
configure

INFO: HHH000402: Using Hibernate built-in connection pool (not for
production use!)

Nov 12, 2013 10:58:21 AM
org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl
configure

INFO: HHH000115: Hibernate connection pool size: 20

Nov 12, 2013 10:58:21 AM
org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl
configure

INFO: HHH000006: Autocommit mode: false

Nov 12, 2013 10:58:21 AM
org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl
configure

INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL
[jdbc:mysql://localhost:3306/ltsts]

Nov 12, 2013 10:58:21 AM
org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl
configure

INFO: HHH000046: Connection properties: {user=root, password=****}



On Eclipse Helios, where application is working fine, the console outputs
couple of line in addition to above mentioned console output and the
browser instantaneously display the page:

The Console Output (of Eclipse Helios): the App is working fine here

….

Nov 12, 2013 11:56:41 AM org.hibernate.dialect.Dialect <init>

INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect

Nov 12, 2013 11:56:41 AM
org.hibernate.engine.jdbc.internal.LobCreatorBuilder
useContextualLobCreation

INFO: HHH000423: Disabling contextual LOB creation as JDBC driver reported
JDBC version [3] less than 4

Nov 12, 2013 11:56:41 AM
org.hibernate.engine.transaction.internal.TransactionFactoryInitiator
initiateService

INFO: HHH000399: Using default transaction strategy (direct JDBC
transactions)

Nov 12, 2013 11:56:41 AM
org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>

INFO: HHH000397: Using ASTQueryTranslatorFactory



I intermittently spent couple of days trying to get it resolved, but all
effort went in vain.



I’ll appreciate if anybody put some light on the solution to the problem.



Thanks

Re: Application (build with T5.3.2/T5.4-alpha-24) working on Eclipse Helios but not on Eclipse Juno/Kepler

Posted by Anil Agnihotri <an...@gmail.com>.
Hello Thiago,



Thanks for the reply.



> The First Tapestry project doesn't use tapestry-hibernate, so this JAR
shouldn't be in its classpath.



The intent of mentioning the “First Tapestry Project” is to say it is the
most basic application.



And, the intent of mentioning "(with Tapestry 5.4-alpha-24, a DB with One
Table, with proper Hibernate Tool Configuration and Code Generation) “ is
to point out that I have used "tapestry-hibernate" dependency at the POM.
“hibernate.cfg.xml

“ properly created using Hibernate Tool. Hibernate Console is properly
created. Validation of above could be checked at the Hibernate
Perspective/View where I could see DB and the Tables. With this config in
place, I have generated Table/Model Code Class (i.e. User) and added an
entry at the Hibernate configuration hibernate.cfg.xml to map model class.



> Have you checked whether the project is correctly configured at Eclipse,
with the right source folders, no exclusions, etc? That the database
configurations are correct?



As I mentioned, this stack is working fine in Eclipse Helios. When I Run
the Jetty, the Application Page is displayed in the browser and the Jetty
Console is displays “INFO: HHH000046: Connection properties: {user=root,
password=****}” info and beyond (as I mentioned in my primary message).



But If I load this stack/project in Eclipse Juno/Kepler and Run, the Jetty
Console displays content to the point till “INFO: HHH000046: Connection
properties: {user=root, password=****}” and infinitely stuck to this point
and the browser never loads the application page.



Same app, same config, same everything is working in Eclipse Helios but not
in Eclipse Juno/Kepler.



> By the way, this error isn't related to Tapestry at all.



It seems to me the same and hoping it to be that way, but what I was
hopeful for is if anybody using Eclipse Juno/Kepler with
T5.3.2/T5.4-alpha-24 & Hibernate & MySQL might have faced similar problem
and could help me resolve the issue.



Thanks & Best Regards,

Anil

Re: Application (build with T5.3.2/T5.4-alpha-24) working on Eclipse Helios but not on Eclipse Juno/Kepler

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 12 Nov 2013 04:54:14 -0200, Anil Agnihotri  
<an...@gmail.com> wrote:

> Hello All,

Hi!

> I have a working application (Tapestry 5.3.2 + Hibernate + MySQL) Dev’ed
> with Eclipse Helios (with Maven, Jetty, Hibernate installation). Let  
> alone my application, if I even try to run “First Tapestry Project”  
> mentioned at http://tapestry.apache.org/getting-started.html (with  
> Tapestry
> 5.4-alpha-24, a DB with One Table, with proper Hibernate Tool  
> Configuration and Code Generation) I am facing the same problem.

The First Tapestry project doesn't use tapestry-hibernate, so this JAR  
shouldn't be in its classpath.

> The problem is when I try to port this application on Eclipse Juno or
> Eclipse Kepler, the browser never loads the application page and the
> console output gets infinitely stuck at “INFO: HHH000046: Connection
> properties: {user=root, password=****}

Have you checked whether the project is correctly configured at Eclipse,  
with the right source folders, no exclusions, etc? That the database  
configurations are correct?

By the way, this error isn't related to Tapestry at all.

-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org