You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by "zoey.lee" <zo...@gmail.com> on 2006/07/05 09:51:02 UTC

problem during startup

Tomcat 5.5.17
roller 2.3
when I start tomcat, roller will has the exception as below:
ERROR 2006-07-05 15:36:12,562 ContextLoader:initWebApplicationContext -
Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource
[/WEB-INF/applicationContext.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/applicationContext.xml]
java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/applicationContext.xml]

anyone can help me? thanks!
-- 
View this message in context: http://www.nabble.com/problem-during-startup-tf1893175s12275.html#a5177405
Sent from the Roller - User forum at Nabble.com.


Re: problem during startup

Posted by Matt Raible <mr...@gmail.com>.
It looks like you're missing the contextConfigLocations context-param
in your web.xml.

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/security.xml</param-value>
</context-param>

Did you use Ant to build Roller? This is required since XDoclet
generates web.xml.

Matt

On 7/5/06, zoey.lee <zo...@gmail.com> wrote:
>
> Tomcat 5.5.17
> roller 2.3
> when I start tomcat, roller will has the exception as below:
> ERROR 2006-07-05 15:36:12,562 ContextLoader:initWebApplicationContext -
> Context initialization failed
> org.springframework.beans.factory.BeanDefinitionStoreException: IOException
> parsing XML document from ServletContext resource
> [/WEB-INF/applicationContext.xml]; nested exception is
> java.io.FileNotFoundException: Could not open ServletContext resource
> [/WEB-INF/applicationContext.xml]
> java.io.FileNotFoundException: Could not open ServletContext resource
> [/WEB-INF/applicationContext.xml]
>
> anyone can help me? thanks!
> --
> View this message in context: http://www.nabble.com/problem-during-startup-tf1893175s12275.html#a5177405
> Sent from the Roller - User forum at Nabble.com.
>
>

RE: problem during startup

Posted by Er...@sanofipasteur.com.
Why is your docBase an absolute path?
Why is there a definition of a JDBC Realm? Wich is different from the JNDI ressource...

-----Message d'origine-----
De : zoey.lee [mailto:zoey.lee@gmail.com] 
Envoyé : mercredi 5 juillet 2006 11:31
À : roller-user@incubator.apache.org
Objet : RE: problem during startup


No,I created it and place it in the "TOMCAT-HOME\conf\Catalina\localhost"
directory.

<Context path="/roller" docBase="D:/apache-tomcat-5.5.17/webapps/roller"
debug="99" workDir="work/Catalina/localhost/roller">
	
    <Realm className="org.apache.catalina.realm.JDBCRealm"      
      driverName="com.mysql.jdbc.Driver"
      connectionURL=
       
"jdbc:mysql://localhost:3306/roller?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;mysqlEncoding=utf8"     
connectionName="scott"
      connectionPassword="tiger"
      userTable="rolleruser" 
      userNameCol="username" 
      userCredCol="passphrase" 
      userRoleTable="userrole" 
      roleNameCol="rolename" debug="99" />

    <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="scott"
      password="tiger"
      maxActive="20"
      maxIdle="3"
      removeAbandoned="true"
      maxWait="3000" />

    <!--
      To enable email notification of comments: uncomment the resouce below, 
      set your mailhost, and make sure you have mail.jar and activation.jar 
      in <tomcat>/common/lib.
    -->
    <!--
    <Resource name="mail/Session" auth="Container" type="javax.mail.Session"
      mail.smtp.host="mailhost.example.com" />
    -->

</Context>
--
View this message in context: http://www.nabble.com/problem-during-startup-tf1893175s12275.html#a5178536
Sent from the Roller - User forum at Nabble.com.

-------------------------------------------------------------------------------------------
"Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you."
**********************************************************************


RE: problem during startup

Posted by "zoey.lee" <zo...@gmail.com>.
No,I created it and place it in the "TOMCAT-HOME\conf\Catalina\localhost"
directory.

<Context path="/roller" docBase="D:/apache-tomcat-5.5.17/webapps/roller"
debug="99" workDir="work/Catalina/localhost/roller">
	
    <Realm className="org.apache.catalina.realm.JDBCRealm"      
      driverName="com.mysql.jdbc.Driver"
      connectionURL=
       
"jdbc:mysql://localhost:3306/roller?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;mysqlEncoding=utf8"     
connectionName="scott"
      connectionPassword="tiger"
      userTable="rolleruser" 
      userNameCol="username" 
      userCredCol="passphrase" 
      userRoleTable="userrole" 
      roleNameCol="rolename" debug="99" />

    <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="scott"
      password="tiger"
      maxActive="20"
      maxIdle="3"
      removeAbandoned="true"
      maxWait="3000" />

    <!--
      To enable email notification of comments: uncomment the resouce below, 
      set your mailhost, and make sure you have mail.jar and activation.jar 
      in <tomcat>/common/lib.
    -->
    <!--
    <Resource name="mail/Session" auth="Container" type="javax.mail.Session"
      mail.smtp.host="mailhost.example.com" />
    -->

</Context>
-- 
View this message in context: http://www.nabble.com/problem-during-startup-tf1893175s12275.html#a5178536
Sent from the Roller - User forum at Nabble.com.


RE: problem during startup

Posted by Er...@sanofipasteur.com.
You did not create your roller.xml file i think. 

-----Message d'origine-----
De : zoey.lee [mailto:zoey.lee@gmail.com] 
Envoyé : mercredi 5 juillet 2006 09:51
À : roller-user@incubator.apache.org
Objet : problem during startup


Tomcat 5.5.17
roller 2.3
when I start tomcat, roller will has the exception as below:
ERROR 2006-07-05 15:36:12,562 ContextLoader:initWebApplicationContext - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

anyone can help me? thanks!
--
View this message in context: http://www.nabble.com/problem-during-startup-tf1893175s12275.html#a5177405
Sent from the Roller - User forum at Nabble.com.

-------------------------------------------------------------------------------------------
"Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci.
This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you."
**********************************************************************