You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by David Bloom <ya...@gmail.com> on 2007/11/25 17:22:28 UTC

roller 4.0 setup issue

I am using the mysql database (5.0.41 community edition) with roller 4
(apache-roller-src-4.0-rc9) which i placed
in Tomcat's webapps directory naming the folder roller4_0  .

I am using tomcat 5.5 with jre (java5)

I get the screen via url  http://localhost:8080/roller4_0/index.jsp  whixh says

Tomcat's common/classes folder have placed file roller-custom.properties:
installation.type=auto
database.configurationType=jdbc
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb
database.jdbc.username=root
database.jdbc.password=admin
mail.configurationType=properties
mail.username=x
mail.password=x


ERROR: cannot load JDBC driver class [com.mysql.jdbc.Driver]. Likely
problem: JDBC driver jar missing from server classpath.

I then place  mysql-connector-java-3.1.13-bin into Tomcat's common/lib

Then, retstart the tomcat server


HTTP Status 404 - /roller4_0/

--------------------------------------------------------------------------------

type Status report

message /roller4_0/

description The requested resource (/roller4_0/) is not available.

Re: roller 4.0 setup issue

Posted by Dave <sn...@gmail.com>.
On Nov 25, 2007 2:46 PM, David Bloom <ya...@gmail.com> wrote:
> This problem was fixed by putting activation.jar,mail.jar from my
> C:\Java5\SDK\lib directory into my tomcats's common/lib directory.
> That is along with my mysql-connector-java-3.1.13-bin into Tomcat's common/lib
> that I already had placed there.
>
> I realized this after seeing Tomcat's log folder which had a roller
> file stating following:
>
> INFO  2007-11-25 14:01:16,984 DatabaseProvider:successMessage -
> SUCCESS: Got parameters. Using configuration type JDBC_PROPERTIES
> INFO  2007-11-25 14:01:16,984 DatabaseProvider:successMessage - --
> Using JDBC driver class: com.mysql.jdbc.Driver

I'm glad to hear you were able to get up and running.  It's a pity
Roller can't recover more smoothly from missing mail and activation
jars.

- Dave

Re: roller 4.0 setup issue

Posted by David Bloom <ya...@gmail.com>.
This problem was fixed by putting activation.jar,mail.jar from my
C:\Java5\SDK\lib directory into my tomcats's common/lib directory.
That is along with my mysql-connector-java-3.1.13-bin into Tomcat's common/lib
that I already had placed there.

I realized this after seeing Tomcat's log folder which had a roller
file stating following:

INFO  2007-11-25 14:01:16,984 DatabaseProvider:successMessage -
SUCCESS: Got parameters. Using configuration type JDBC_PROPERTIES
INFO  2007-11-25 14:01:16,984 DatabaseProvider:successMessage - --
Using JDBC driver class: com.mysql.jdbc.Driver
INFO  2007-11-25 14:01:16,984 DatabaseProvider:successMessage - --
Using JDBC connection URL: jdbc:mysql://localhost:3306/rollerdb
INFO  2007-11-25 14:01:16,984 DatabaseProvider:successMessage - --
Using JDBC username: root
INFO  2007-11-25 14:01:16,984 DatabaseProvider:successMessage - --
Using JDBC password: [hidden]
INFO  2007-11-25 14:01:17,000 DatabaseProvider:successMessage -
SUCCESS: loaded JDBC driver class [com.mysql.jdbc.Driver]
ERROR 2007-11-25 14:01:17,234 StandardContext:listenerStart -
Exception sending context initialized event to listener instance of
class org.apache.roller.weblogger.ui.core.RollerContext
java.lang.NoClassDefFoundError: javax/mail/Session
	at org.apache.roller.weblogger.business.MailProvider.<init>(MailProvider.java:92)
	at org.apache.roller.weblogger.business.startup.WebloggerStartup.prepare(WebloggerStartup.java:179)
	at org.apache.roller.weblogger.ui.core.RollerContext.contextInitialized(RollerContext.java:138)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	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:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
ERROR 2007-11-25 14:01:17,343 StandardContext:listenerStop - Exception
sending context destroyed event to listener instance of class
org.apache.roller.weblogger.ui.core.RollerContext
java.lang.IllegalStateException: Roller Weblogger has not been bootstrapped yet
	at org.apache.roller.weblogger.business.WebloggerFactory.getWeblogger(WebloggerFactory.java:60)
	at org.apache.roller.weblogger.ui.core.RollerContext.contextDestroyed(RollerContext.java:215)
	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4364)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4246)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	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:585)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

On Nov 25, 2007 8:22 AM, David Bloom <ya...@gmail.com> wrote:
> I am using the mysql database (5.0.41 community edition) with roller 4
> (apache-roller-src-4.0-rc9) which i placed
> in Tomcat's webapps directory naming the folder roller4_0  .
>
> I am using tomcat 5.5 with jre (java5)
>
> I get the screen via url  http://localhost:8080/roller4_0/index.jsp  whixh says
>
> Tomcat's common/classes folder have placed file roller-custom.properties:
> installation.type=auto
> database.configurationType=jdbc
> database.jdbc.driverClass=com.mysql.jdbc.Driver
> database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb
> database.jdbc.username=root
> database.jdbc.password=admin
> mail.configurationType=properties
> mail.username=x
> mail.password=x
>
>
> ERROR: cannot load JDBC driver class [com.mysql.jdbc.Driver]. Likely
> problem: JDBC driver jar missing from server classpath.
>
> I then place  mysql-connector-java-3.1.13-bin into Tomcat's common/lib
>
> Then, retstart the tomcat server
>
>
> HTTP Status 404 - /roller4_0/
>
> --------------------------------------------------------------------------------
>
> type Status report
>
> message /roller4_0/
>
> description The requested resource (/roller4_0/) is not available.
>