Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Tomcat/JSP Question

  Asked By: Rufus    Date: Oct 11    Category: Java    Views: 762
  

I am pretty new to all all of this, but I have a project for work I
need to complete using JSP & Struts. Unfortunatley, it seems I
cannot even get Tomcat to run properly. It runs fine as installed,
with the examples that come with the install, but I cannot get
anything else to run on it. I think it is something with the
Context path. I have tried putting this into an XML file
in /conf/cataline/localhost/ and also in the webapps/appname/
directory. I tried using the manager to deploy it also and still no
luck. I'm pretty sure everything else is correct because all I am
trying to run right now is a simple app copied directly off a cd
from a JSP book. Any information or advice would be greatly
appreciated.

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Wendy Harrison     Answered On: Oct 11

Try just replicate examples  directory with the name
which u want for ur virtual directory. Restart tomcat
and start using it.

 
Answer #2    Answered By: Noah Evans     Answered On: Oct 11

I just set up Tomcat 5 on my machine at home. I followed the
instructions that are on the web site for the book  Core Servlets and
JavaServer Pages

 
Answer #3    Answered By: Candace Foster     Answered 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)

 
Didn't find what you were looking for? Find more on Tomcat/JSP Question Or get search suggestion and latest updates.




Tagged: