Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Rufus Williams   on Oct 11 In Java Category.

  
Question Answered By: Candace Foster   on Oct 11

Few days back I have upgraded tomcat  from 4.1.29 to 5.0.25 ...

When I deploy  the war file in Tomcat 5.0.25 , and tried to login into the web
page using username and password , the control passes over to next page and in
that page links are there to Edit or Delete a User , when i am clicking on the
link "Edit" i am getting the following error

"java.net.MalformedURLException: Path . does not start with a "/" character"

If the same war file is deployed in Tomcat 4.1.29 ... its working fine  .... here
i am able to edit user info We are using a cocoon frame work  in our project  ,
When ever You click on the Edit link , control goes to Sitemap and searches for
the suitable pattern and calls the particular action

I am also pasting the Stack Trace of the Error :

org.apache.cocoon.ProcessingException: IOException JSPReader.generate():
java.net.MalformedURLException: Path . does
not start with a "/" character
at org.apache.cocoon.reading.JSPReader.generate(JSPReader.java:153)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Cachin\
gStreamPipeline.java:251)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(AbstractStr\
eamPipeline.java:168)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStrea\
mPipeline.java:293)
at
org.apache.cocoon.components.treeprocessor.sitemap.ReadNode.invoke(ReadNode.java\
:133)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo\
des(
AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNod\
e.java:150)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo\
des(
AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(Pr\
eparableMatchNode.java:156)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo\
des(
AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineN\
ode.java:140)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo\
des(
AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipeline\
sNode.java:144)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.j\
ava:328)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.j\
ava:293)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt\
erChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.\
java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2\
14)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValv\
e.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1\
52)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109\
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio\
n(Http11Protocol.java:702)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:64\
4)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.net.MalformedURLException: Path . does not start with a "/"
character
at
org.apache.catalina.core.ApplicationContext.getResource(ApplicationContext.java:\
469)
at
org.apache.catalina.core.ApplicationContextFacade.getResource(ApplicationContext\
Facade.java:176)
at org.apache.cocoon.reading.JSPReader.generate(JSPReader.java:116)
... 41 more
java.net.MalformedURLException: Path . does not start with a "/" character
at
org.apache.catalina.core.ApplicationContext.getResource(ApplicationContext.java:\
469)
at
org.apache.catalina.core.ApplicationContextFacade.getResource(ApplicationContext\
Facade.java:176)
at org.apache.cocoon.reading.JSPReader.generate(JSPReader.java:116)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Cachin\
gStreamPipeline.java:251)
at
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(AbstractStr\
eamPipeline.java:168)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStrea\
mPipeline.java:293)
at
org.apache.cocoon.components.treeprocessor.sitemap.ReadNode.invoke(ReadNode.java\
:133)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo\
des(
AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNod\
e.java:150)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo\
des(
AbstractParentProcessingNode.java:85)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(Pr\
eparableMatchNode.java:156)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo\
des(
AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineN\
ode.java:140)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo\
des(
AbstractParentProcessingNode.java:109)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipeline\
sNode.java:144)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.j\
ava:328)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.j\
ava:293)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt\
erChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.\
java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2\
14)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValv\
e.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1\
52)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109\
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja\
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio\
n(Http11Protocol.java:702)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:64\
4)
at java.lang.Thread.run(Thread.java:536)

Share: