You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by ntran <ni...@hotmail.com> on 2006/03/10 09:31:34 UTC

installatoin problem: ...A docBase {0} inside the host appBase has...

Hi,

I am having problem trying to get roller 2.1 to run. When I go to
http://localhost/roller I get a 404 page. I am using roller 2.1 on tomcat
5.5.12, JDK 1.5.0.6, windows xp.

This is what I have for catalina.out:

Mar 10, 2006 12:01:44 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Mar 10, 2006 12:01:44 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 972 ms
Mar 10, 2006 12:01:44 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 10, 2006 12:01:44 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
Mar 10, 2006 12:01:44 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 10, 2006 12:01:45 AM org.apache.catalina.startup.HostConfig
deployDescriptor
Mar 10, 2006 12:01:45 AM org.apache.catalina.startup.HostConfig
deployDescriptor
WARNING: A docBase C:\tomcat-5.5.12\webapps\roller inside the host appBase
has been specified, and will be ignored
Mar 10, 2006 12:01:51 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Mar 10, 2006 12:01:51 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/roller] startup failed due to previous errors
Mar 10, 2006 12:01:52 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Mar 10, 2006 12:01:53 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 10, 2006 12:01:53 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/60  config=null
Mar 10, 2006 12:01:53 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 10, 2006 12:01:53 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8732 ms

It seems like the start of my problem is at:

WARNING: A docBase C:\tomcat-5.5.12\webapps\roller inside the host appBase
has been specified, and will be ignored

I have roller.xml in "...\conf\Catalina\localhost." It's configuration is:
<Context path="/roller" docBase="roller" debug="0">
  <Resource name="jdbc/rollerdb" auth="Container"
type="javax.sql.DataSource"
    driverClassName="com.mysql.jdbc.Driver"
   
url="jdbc:mysql://localhost:3306/roller?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;mysqlEncoding=utf8"
    username="admin"
    password="password"
    maxWait="3000" />
  <!-- If you want e-mail features, un-comment the section below -->
  <!--
  <Resource name="mail/Session" auth="Container" type="javax.mail.Session"
     mail.smtp.host="mailhost.example.com" />
  -->
</Context>


Thanks in advance,

Nick
--
View this message in context: http://www.nabble.com/installatoin-problem%3A-...A-docBase-%7B0%7D-inside-the-host-appBase-has...-t1257641c12275.html#a3335143
Sent from the Roller - User forum at Nabble.com.


Re: installatoin problem: ...A docBase {0} inside the host appBase has..

Posted by Anil Gangolli <an...@busybuddha.org>.
ntran wrote:
> Thanks, Matt. I should have checked that first.
>
> >From the roller.log it seems the exception that was causing the problem was
> a "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
> (utf8_general_ci,COERCIBLE) for operation SQL exception.
>
> I looked up this error in the forum to see if anyone had this problem before
> and I ran across this post:
> http://www.nabble.com/Roller-2.0-is-available-t617635c12275.html#a1675102
>
> Which lead me to the roller wiki for setting up mysql with UTF8
> instructions.
> http://rollerweblogger.org/wiki/Wiki.jsp?page=SetupUTF8onMySQL 
>
> Doing "default-character-set=utf8" in my.ini did not work for me but setting
> up default encoding for the roller database did: CREATE DATABASE roller
> DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
>   

The default-character-set=utf8 setting in the ini file does work (I use 
it), but the way MySQL uses this is that the setting is applied on a 
per-database basis only when a new database is created.  So after 
setting that, one must restart the MySQL server AND re-create the Roller 
database  (if you had already created one) but one won't have to specify 
it per database.

The wiki says this, but not as emphatically.  I'll clarify.  Thanks for 
the feedback.

--a.




Re: installatoin problem: ...A docBase {0} inside the host appBase has..

Posted by ntran <ni...@hotmail.com>.
Thanks, Matt. I should have checked that first.

>From the roller.log it seems the exception that was causing the problem was
a "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(utf8_general_ci,COERCIBLE) for operation SQL exception.

I looked up this error in the forum to see if anyone had this problem before
and I ran across this post:
http://www.nabble.com/Roller-2.0-is-available-t617635c12275.html#a1675102

Which lead me to the roller wiki for setting up mysql with UTF8
instructions.
http://rollerweblogger.org/wiki/Wiki.jsp?page=SetupUTF8onMySQL 

Doing "default-character-set=utf8" in my.ini did not work for me but setting
up default encoding for the roller database did: CREATE DATABASE roller
DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

Everything seems to be working now.

Thanks,

Nick.
--
View this message in context: http://www.nabble.com/installatoin-problem%3A-...A-docBase-%7B0%7D-inside-the-host-appBase-has...-t1257641c12275.html#a3344308
Sent from the Roller - User forum at Nabble.com.


Re: installatoin problem: ...A docBase {0} inside the host appBase has...

Posted by Matt Raible <mr...@gmail.com>.
You can safely ignore the docBase warning - the real error is:

> Mar 10, 2006 12:01:51 AM org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart

Check $CATALINA_HOME/logs/roller.log for a stacktrace on why this happening.

Matt


On 3/10/06, ntran <ni...@hotmail.com> wrote:
>
> Hi,
>
> I am having problem trying to get roller 2.1 to run. When I go to
> http://localhost/roller I get a 404 page. I am using roller 2.1 on tomcat
> 5.5.12, JDK 1.5.0.6, windows xp.
>
> This is what I have for catalina.out:
>
> Mar 10, 2006 12:01:44 AM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-80
> Mar 10, 2006 12:01:44 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 972 ms
> Mar 10, 2006 12:01:44 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Mar 10, 2006 12:01:44 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
> Mar 10, 2006 12:01:44 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Mar 10, 2006 12:01:45 AM org.apache.catalina.startup.HostConfig
> deployDescriptor
> Mar 10, 2006 12:01:45 AM org.apache.catalina.startup.HostConfig
> deployDescriptor
> WARNING: A docBase C:\tomcat-5.5.12\webapps\roller inside the host appBase
> has been specified, and will be ignored
> Mar 10, 2006 12:01:51 AM org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart
> Mar 10, 2006 12:01:51 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/roller] startup failed due to previous errors
> Mar 10, 2006 12:01:52 AM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-80
> Mar 10, 2006 12:01:53 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Mar 10, 2006 12:01:53 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/60  config=null
> Mar 10, 2006 12:01:53 AM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Mar 10, 2006 12:01:53 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 8732 ms
>
> It seems like the start of my problem is at:
>
> WARNING: A docBase C:\tomcat-5.5.12\webapps\roller inside the host appBase
> has been specified, and will be ignored
>
> I have roller.xml in "...\conf\Catalina\localhost." It's configuration is:
> <Context path="/roller" docBase="roller" debug="0">
>   <Resource name="jdbc/rollerdb" auth="Container"
> type="javax.sql.DataSource"
>     driverClassName="com.mysql.jdbc.Driver"
>
> url="jdbc:mysql://localhost:3306/roller?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8"
>     username="admin"
>     password="password"
>     maxWait="3000" />
>   <!-- If you want e-mail features, un-comment the section below -->
>   <!--
>   <Resource name="mail/Session" auth="Container" type="javax.mail.Session"
>      mail.smtp.host="mailhost.example.com" />
>   -->
> </Context>
>
>
> Thanks in advance,
>
> Nick
> --
> View this message in context: http://www.nabble.com/installatoin-problem%3A-...A-docBase-%7B0%7D-inside-the-host-appBase-has...-t1257641c12275.html#a3335143
> Sent from the Roller - User forum at Nabble.com.
>
>