On Wed, Mar 2, 2011 at 2:00 AM, Deshraj Kiran <[email protected]> wrote: > Hello Dave > I've got the problem fixed. Everything described in the book seems to be > working well except the typo 'utf-' in the url attribute of Context.xml, > that needed to be changed to 'utf-8'. > > url="jdbc:mysql://localhost:3306/rollerdb? > autoReconnect=true&useUnicode=true& > characterEncoding=utf-&mysqlEncoding=utf8"
Interesting. Two questions: did you encounter the same error (see below) that David Ghedini did? and what version of Tomcat are you running? Thanks, Dave > > Thanks for reply. > On Wed, Mar 2, 2011 at 8:20 AM, Dave <[email protected]> wrote: > >> I am able to reproduce that problem with Tomcat 7.0.4 and I have a fix >> that works, at least for me. >> >> I'll send another note once I've got new Tomcat builds ready for you to >> try. >> >> Thanks, >> - Dave >> >> >> >> On Mon, Feb 28, 2011 at 8:23 AM, David Ghedini <[email protected]> >> wrote: >> > I've tried both the zip and tar. >> > >> > Both get: >> > >> > SEVERE: Error deploying web application archive roller.war >> > java.lang.IllegalArgumentException: The archive >> > [jar:file:/usr/share/apache-tomcat-7.0.8/webapps/roller.war!/] is >> malformed >> > and will be ignored: an entry contains an illegal path [./] >> > >> > >> > >> > >> > >> > INFO: Deploying web application archive roller.war >> > Feb 28, 2011 4:19:19 PM org.apache.catalina.startup.HostConfig deployWAR >> > SEVERE: Error deploying web application archive roller.war >> > java.lang.IllegalArgumentException: The archive >> > [jar:file:/usr/share/apache-tomcat-7.0.8/webapps/roller.war!/] is >> malformed >> > and will be ignored: an entry contains an illegal path [./] >> > at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:121) >> > at >> > >> org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:714) >> > at >> > org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:837) >> > at >> > >> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:335) >> > at >> > >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) >> > at >> > >> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89) >> > at >> > org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:343) >> > at >> > org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:323) >> > at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107) >> > at >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:136) >> > at >> > >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812) >> > at >> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787) >> > at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607) >> > at >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:925) >> > at >> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:723) >> > at >> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470) >> > at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1343) >> > at >> > >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:294) >> > at >> > >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) >> > at >> > >> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89) >> > at >> > >> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1235) >> > at >> > >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1393) >> > at >> > >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1403) >> > at >> > >> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1382) >> > at java.lang.Thread.run(Thread.java:662) >> > >> > -- >> > Kind regards, >> > >> > David >> > >> >
