After adding the following to my roller-custom.properties, I'm able to login:
# Password security settings passwds.encryption.enabled=true passwds.encryption.algorithm=SHA Does this mean the defaults changed b/w 4 and 5? On Mar 2, 2011, at 9:42 AM, Nicolas Muller wrote: > I found the same problem with jndi configuration. Try the other one with > informations (login, password...) into roller-custom.properties and it will > be nice. > > I think openjpa need a special configuration for datasource or ? > > Best regards, > > -----Message d'origine----- > De : Matt Raible [mailto:[email protected]] > Envoyé : mercredi 2 mars 2011 17:35 > À : [email protected] > Cc : user > Objet : Re: Apache Roller 5.0 RC4 available for testing > > I tried installing my 4.0 database, upgrading it and getting all the proper > JARs in place. I'm using Tomcat 7 with Java 6 on OS X and I get the > following error on startup. > > I built from trunk rather than downloading the release. > > My roller-custom.properties has the following: > > plugins.page=\ > org.apache.roller.weblogger.business.plugins.entry.ConvertLineBreaksPlugin \ > ,org.apache.roller.weblogger.business.plugins.entry.TopicTagPlugin \ > ,org.apache.roller.weblogger.business.plugins.entry.ObfuscateEmailPlugin \ > ,org.apache.roller.weblogger.business.plugins.entry.SmileysPlugin \ > ,org.apache.roller.weblogger.business.plugins.entry.WikipediaLinkPlugin \ > ,org.apache.roller.weblogger.business.plugins.entry.GoogleLinkPlugin \ > ,org.apache.roller.weblogger.business.plugins.entry.AcronymsPlugin \ > ,org.apache.roller.weblogger.business.plugins.entry.BookmarkPlugin \ > ,net.java.dev.roller.plugins.weblogentry.jspwiki.WikiPlugin > > passwds.encryption.enabled=true > rememberme.enabled=true > > planet.aggregator.enabled=true > editor.theme=blue > > rendering.legacyModels.enabled=true > > comment.validator.excessSize.threshold=5000 > > O 2011-03-02 09:26:37,471 DatabaseProvider:successMessage - SUCCESS: Got > parameters. Using configuration type JNDI_NAME > INFO 2011-03-02 09:26:37,479 DatabaseProvider:successMessage - -- Using > JNDI datasource name: java:comp/env/jdbc/rollerdb > INFO 2011-03-02 09:26:37,481 DatabaseProvider:successMessage - SUCCESS: > located JNDI DataSource [java:comp/env/jdbc/rollerdb] > INFO 2011-03-02 09:27:43,844 DatabaseProvider:successMessage - SUCCESS: Got > parameters. Using configuration type JNDI_NAME > INFO 2011-03-02 09:27:43,848 DatabaseProvider:successMessage - -- Using > JNDI datasource name: java:comp/env/jdbc/rollerdb > INFO 2011-03-02 09:27:43,849 DatabaseProvider:successMessage - SUCCESS: > located JNDI DataSource [java:comp/env/jdbc/rollerdb] > WARN 2011-03-02 09:27:44,192 WebloggerStartup:prepare - Failed to setup > mail provider, continuing anways. > Reason: ERROR connecting to mail server > INFO 2011-03-02 09:27:44,222 DatabaseInstaller:upgradeDatabase - Database > is old, beginning upgrade to version 500 > INFO 2011-03-02 09:27:45,004 WebloggerFactory:bootstrap - Bootstrapping > Roller Weblogger business tier > INFO 2011-03-02 09:27:45,004 WebloggerFactory:bootstrap - Weblogger > Provider = org.apache.roller.weblogger.business.GuiceWebloggerProvider > INFO 2011-03-02 09:27:45,007 DatabaseProvider:successMessage - SUCCESS: Got > parameters. Using configuration type JNDI_NAME > INFO 2011-03-02 09:27:45,007 DatabaseProvider:successMessage - -- Using > JNDI datasource name: java:comp/env/jdbc/rollerdb > INFO 2011-03-02 09:27:45,007 DatabaseProvider:successMessage - SUCCESS: > located JNDI DataSource [java:comp/env/jdbc/rollerdb] > INFO 2011-03-02 09:27:45,008 JPAPersistenceStrategy:<init> - > hibernate.transaction.manager_lookup_class: > org.hibernate.transaction.JBossTransactionManagerLookup > INFO 2011-03-02 09:27:45,008 JPAPersistenceStrategy:<init> - > hibernate.transaction.factory_class: > org.hibernate.transaction.JTATransactionFactory > INFO 2011-03-02 09:27:45,008 JPAPersistenceStrategy:<init> - openjpa.Log: > commons > INFO 2011-03-02 09:27:45,584 IndexManagerImpl:<init> - search enabled: true > INFO 2011-03-02 09:27:45,584 IndexManagerImpl:<init> - index dir: > /Users/mraible/roller_data/search-index > ERROR 2011-03-02 09:27:45,596 PluginManagerImpl:loadPagePluginClasses - > ClassNotFoundException for > net.java.dev.roller.plugins.weblogentry.jspwiki.WikiPlugin > INFO 2011-03-02 09:27:45,602 ReferrerQueueManagerImpl:<init> - > Instantiating Referrer Queue Manager > INFO 2011-03-02 09:27:45,603 ReferrerQueueManagerImpl:<init> - Asynchronous > referrer processing = false > INFO 2011-03-02 09:27:45,609 ThreadManagerImpl:<init> - Instantiating > Thread Manager > INFO 2011-03-02 09:27:45,613 WebloggerFactory:bootstrap - Roller Weblogger > business tier successfully bootstrapped > INFO 2011-03-02 09:27:45,613 WebloggerFactory:bootstrap - Version: > 5.0.0-RC4 > INFO 2011-03-02 09:27:45,613 WebloggerFactory:bootstrap - Revision: > r1076253 > INFO 2011-03-02 09:27:45,613 WebloggerImpl:initialize - Initializing Roller > Weblogger business tier > FATAL 2011-03-02 09:27:45,749 JPAPropertiesManagerImpl:initialize - Failed > to initialize runtime configuration properties.Please check that the > database has been upgraded! > <openjpa-2.0.1-r422266:989424 fatal user error> > org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or > DataSource class name must be specified in the ConnectionDriverName > property. > at > org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFac > tory.java:76) > at > org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(J > DBCConfigurationImpl.java:839) > at > org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(J > DBCConfigurationImpl.java:597) > at > org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepos > itory.java:1489) > at > org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations. > java:507) > at > org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations. > java:432) > at > org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:104) > at > org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataReposito > ryValue.java:68) > at > org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83) > at > org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstan > ce(OpenJPAConfigurationImpl.java:939) > at > org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstan > ce(OpenJPAConfigurationImpl.java:930) > at > org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerF > actory.java:639) > at > org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFact > ory.java:206) > at > org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBroker > Factory.java:156) > at > org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager( > EntityManagerFactoryImpl.java:227) > at > org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager( > EntityManagerFactoryImpl.java:154) > at > org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager( > EntityManagerFactoryImpl.java:60) > at > org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.getThreadLoc > alEntityManager(JPAPersistenceStrategy.java:238) > at > org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.getEntityMan > ager(JPAPersistenceStrategy.java:225) > at > org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy.getNamedQuer > y(JPAPersistenceStrategy.java:258) > at > org.apache.roller.weblogger.business.jpa.JPAPropertiesManagerImpl.getPropert > ies(JPAPropertiesManagerImpl.java:117) > at > org.apache.roller.weblogger.business.jpa.JPAPropertiesManagerImpl.initialize > (JPAPropertiesManagerImpl.java:77) > at > org.apache.roller.weblogger.business.WebloggerImpl.initialize(WebloggerImpl. > java:338) > at > org.apache.roller.weblogger.ui.core.RollerContext.contextInitialized(RollerC > ontext.java:161) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java: > 4600) > at > org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5097) > at > org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5092) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja > va:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9 > 08) > at java.lang.Thread.run(Thread.java:680) > > > On Feb 27, 2011, at 1:32 PM, Dave wrote: > >> Apache Roller 5.0 Release Candidate RC4 is now available for testing. >> Note that this is NOT a release of the Apache Software Foundation or >> anybody else; this release candidate is for testing purposes only and >> not recommended for production. >> >> What's new in Roller 5.0: >> > https://cwiki.apache.org/confluence/display/ROLLER/What's+new+in+Roller+5.0 >> >> Change list (issues resolved since 4.0) >> http://bit.ly/gAhDWR >> >> Issues resolved since last release candidate (RC4) >> http://bit.ly/iaLKyt >> >> Signed binary and source files. Also, documentation in PDF form >> http://people.apache.org/~snoopdave/apache-roller-5.0/ >> >> Could this be the one? >> >> There were only minor fixes made since RC3 and RC4 is deployed >> at blogs.apache.org (and my own blog), so hope to call for release >> vote on this build depending how initial feedback goes. >> >> If you would like to help out then please test RC4, discuss the >> problems you encounter here and file specific bugs with steps to >> reproduce in the Roller JIRA bug tracking system. >> >> Thanks, >> Dave >
