Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove hibernate file from helloworld plugin under docs/examples #368

Closed
mabouza opened this Issue · 3 comments

5 participants

@mabouza

A user from the community was having an error when deploying the helloworld example and JT responded saying to remove the hibernate file.

I don't know if it needs to be removed or modified but it should work out of the box

This was the error

16/05/12 14:15:14:683 EDT] INFO lang.System: dotCMS Version :
COMMUNITY EDITION
[16/05/12 14:15:15:347 EDT] INFO startup.StartupTasksExecutor:
Starting startup tasks.
[16/05/12 14:15:15:936 EDT] ERROR [localhost].[/]: Servlet threw
load() exception
net.sf.hibernate.MappingException: Dialect does not support sequences
at
net.sf.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:
335)
at
net.sf.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:
57)
at
net.sf.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:
78)
at
net.sf.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:
82)
at
net.sf.hibernate.persister.AbstractEntityPersister.(AbstractEntityPersister.java:
644)
at
net.sf.hibernate.persister.EntityPersister.(EntityPersister.java:
690)
at
net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:
42)
at
net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:
137)
at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:
805)
at
com.dotmarketing.db.HibernateUtil.buildSessionFactory(HibernateUtil.java:
514)
at com.dotmarketing.db.HibernateUtil.getSession(HibernateUtil.java:
572)
at
com.dotmarketing.db.HibernateUtil.sessionCleanupAndRollback(HibernateUtil.java:
724)
at
com.dotmarketing.db.HibernateUtil.rollbackTransaction(HibernateUtil.java:
708)
at
com.dotmarketing.startup.StartupTasksExecutor.executeUpgrades(StartupTasksExecutor.java:
213)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:117)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:
993)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
4187)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4496)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
546)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
637)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:
563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
[16/05/12 14:15:15:963 EDT] INFO
business.DotGuavaCacheAdministratorImpl: *** Building Cache :
companypool, size:10, toDisk:false,Concurrency:32

@dsilvam dsilvam was assigned
@jtesser
Owner

make sure we can deploy the helloworld plugin out of the box.

I would NOT remove the hibernate files but would remove the mappings. You will also need to remove the deployer. Again I would NOT remove the file OR its mapping in the Manifest but just comment the code inside of it

@dsilvam dsilvam closed this issue from a commit
@dsilvam dsilvam fixes #368 6b6136e
@dsilvam dsilvam closed this in 6b6136e
@dsilvam dsilvam referenced this issue from a commit
@dsilvam dsilvam missing changes #368 52237e3
@DeanGonzalez
Collaborator

assigned to Ravi for testing

@DeanGonzalez
Collaborator

passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.